-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (32 loc) · 838 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
37
38
39
40
ARG MIRROR_DOCKERIO=docker.io
FROM ${MIRROR_DOCKERIO}/ubuntu:20.04
# Needed for string substitution
SHELL ["/bin/bash", "-c"]
# To remove debconf build warnings
ARG DEBIAN_FRONTEND=noninteractive
# Change locale to fix encoding error on mail-parser install
ARG LC=ko_KR.UTF-8
RUN apt-get update \
&& apt-get install --no-install-suggests -y \
locales \
&& locale-gen en_US.UTF-8 \
&& locale-gen ${LC} \
;
# Set default locale for the environment
ENV LC_ALL=C \
LANG=${LC}
# Change the timezone
ARG TZ=Asia/Seoul
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
;
# Install essential programs
RUN apt-get update \
&& apt-get install --no-install-suggests -y \
python3.10 \
python3-pip \
;
WORKDIR /app
COPY . .
RUN pip3 install -r requirements.txt
ENV PYTHONPATH=/app
CMD ["python", "main.py"]