-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 920 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
FROM nginx:1.7.10
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
python python-pip python-dev\
build-essential \
supervisor \
python-numpy \
&& apt-get clean
RUN pip install cloudant uwsgi
RUN mkdir -p /home/uwsgi \
&& mkdir -p /etc/uwsgi/vassals \
&& mkdir /database_attachments
VOLUME [ "/var/log/supervisor", "/database_attachments" ]
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./build-conf-files.py /build-conf-files.py
COPY ./nginx-base.conf.in /nginx-base.conf.in
COPY ./nginx-auth.conf.in /nginx-auth.conf.in
COPY ./docker-entrypoint.sh /entrypoint.sh
COPY ./wsgi.ini /etc/uwsgi/vassals/wsgi.ini
COPY ./handle_req.py /home/uwsgi/handle_req.py
COPY ./supervisor-app.conf /etc/supervisor/conf.d/supervisor-app.conf
EXPOSE 80
EXPOSE 5984
# The folloing only for docker connections!
EXPOSE 5983
ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx"]