-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
36 lines (27 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Base Image
FROM ubuntu:20.04
# maintainer info
MAINTAINER "[email protected]"
# setting timezone
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# env setting & compiler installation
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
python3-pip \
python3.8 \
manpages-dev \
openjdk-11-jdk \
curl \
build-essential && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/*
# copy TCH project to Docker's /TCH directory
COPY . /TCH
# cd /TCH
WORKDIR /TCH
# running command when container is started
ENTRYPOINT [ "python3", "run.py" ]