forked from mysociety/pombola
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (31 loc) · 1.09 KB
/
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
FROM python:2-stretch
ENV PYTHONUNBUFFERED 1
ENV COUNTRY_APP=south_africa
RUN apt-get update && \
apt-get install -y antiword \
binutils \
libffi-dev \
libjpeg-dev \
libpq-dev \
libxml2-dev \
libxslt1-dev \
libproj-dev \
gdal-bin \
poppler-utils \
python-dev \
python-gdal \
ruby-bundler \
ruby2.3-dev \
yui-compressor \
zlib1g-dev \
postgresql-client \
awscli
RUN mkdir /app
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt
COPY . /app/
# Set WORKDIR after installing, so that src dir isn't created then overwritten
# by development mount
WORKDIR /app
RUN bundle install
CMD gunicorn --limit-request-line 7168 --worker-class gevent pombola.wsgi:application -t 600 --log-file - -b 0.0.0.0:5000