forked from healthsites/healthsites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (28 loc) · 1.37 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
38
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
# Note this base image is based on debian
FROM kartoza/django-base
MAINTAINER Tim Sutton<[email protected]>
WORKDIR /home/web/django_project
#RUN ln -s /bin/true /sbin/initctl
# Use local cached debs from host (saves your bandwidth!)
# Change ip below to that of your apt-cacher-ng host
# Or comment this line out if you do not with to use caching
#ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng
RUN apt-get -y update
#-------------Application Specific Stuff ----------------------------------------------------
RUN apt-get -y install libpq5 yui-compressor vim
ADD deployment/docker/REQUIREMENTS.txt ./
ADD deployment/docker/REQUIREMENTS-dev.txt ./
RUN pip install -r REQUIREMENTS.txt -r REQUIREMENTS-dev.txt
RUN pip install uwsgi
# Open port 49360 as we will be running our uwsgi socket on that
EXPOSE 49360
ADD ./deployment/docker/rpl-1.5.5.egg-info /usr/lib/pymodules/python2.7/
# You could put --protocol=http as a parameter (to test it directly)
# when running e.g. docker run konektaz/healthsites --protocol=http
# or any other wsgi parameters and they will be tagged on to the
# the end of the entrypoint.
# Under normal usage you would supply no additional params and
# use nginx on the host to forward in the traffic.
ADD django_project/ ./
CMD ["uwsgi", "--ini", "/uwsgi.conf"]