-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 799 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 799 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
FROM python:3.6-slim
EXPOSE 5000
RUN apt-get update
RUN apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update
RUN apt-get -y install docker-ce
COPY ./load_balancer.py /app/load_balancer.py
#COPY ./config.cfg /app/config.cfg
#COPY ./worker/worker_config.yaml /app/worker_config.yaml
COPY ./Pipfile* /app/
#ENV DEFAULT_CONFIG=/app/config.cfg
#ENV WORKER_CONFIG=/app/worker_config.yaml
RUN pip install pipenv
RUN cd /app && pipenv lock --requirements > requirements.txt
RUN pip install -r /app/requirements.txt
CMD ["python", "/app/load_balancer.py"]