-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (23 loc) · 786 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
FROM ubuntu:14.04
ENV LC_CTYPE C.UTF-8
RUN apt-get update && apt-get install -y --force-yes \
python-software-properties \
git \
curl
RUN apt-get install -y --force-yes software-properties-common && \
add-apt-repository ppa:fkrull/deadsnakes && \
apt-get update && \
apt-get -y --force-yes install python3.5-complete
RUN apt-get install -y build-essential python-dev
RUN python3.5 -m ensurepip && pip3.5 install gunicorn==19.4.0
WORKDIR /srv
ADD requirements.txt ./
RUN pip3.5 install --upgrade -r requirements.txt
ADD serve.py .coveragerc .dockerignore gunicorn.py ./
ADD data data
ADD config config
ADD deployer deployer
ADD tasks tasks
ADD tests tests
RUN chmod +x serve.py
CMD ["gunicorn", "--log-file=-", "-c", "/srv/gunicorn.py", "serve:app"]