-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 757 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 757 Bytes
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
FROM ubuntu:18.04
ENV FLASK_APP main.py
ENV FLASK_CONFIG production
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
COPY requirements.txt requirements.txt
ENV TZ=Europe/Prague
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get install -y --reinstall build-essential
RUN apt-get install -y default-mysql-server python3-mysqldb \
python3-distutils python3-dateutil python3-editor libatlas3-base default-jre curl gcc python3-dev
RUN curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o get-pip.py
RUN python3 get-pip.py
RUN python3 -m pip install -r requirements.txt
COPY app app
COPY migrations migrations
COPY main.py config.py boot.sh ./
# run-time configuration
EXPOSE 5000
ENTRYPOINT ["./boot.sh"]