-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 775 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
28
FROM ubuntu:16.04
RUN groupadd container_users && useradd -ms /bin/bash -g container_users belmont
RUN apt-get update && apt-get -y install software-properties-common
RUN apt-get -y install build-essential
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get -y install python3.7
RUN rm /usr/bin/python3
RUN ln -s /usr/bin/python3.7 /usr/bin/python3
RUN apt-get -y install python3-pip
RUN python3 -m pip install --upgrade pip
RUN apt-get -y install curl
USER belmont
ENV DEMETER_DIR /home/belmont/demeter/
ENV PATH /home/belmont/.local/bin:$PATH
ENV FLASK_APP="api.py"
ENV FLASK_ENV="production"
RUN mkdir -p $DEMETER_DIR
ADD . $DEMETER_DIR
WORKDIR $DEMETER_DIR
RUN python3 -m pip install -r requirements.txt
CMD flask run --port=8080 --host=0.0.0.0