-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (18 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
32 lines (18 loc) · 752 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
26
27
28
29
30
31
FROM buildpack-deps:trusty
MAINTAINER Matthew R Hanlon <mrhanlon@tacc.utexas.edu>
EXPOSE 8000
CMD ["supervisord", "-n"]
RUN apt-get update && \
apt-get install -y python python-dev gettext supervisor nginx nodejs npm memcached && \
curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python && \
pip install uwsgi
RUN rm /etc/nginx/sites-enabled/default
COPY ./conf/datastore /etc/nginx/sites-enabled/
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY . /project
RUN ln -s /project/conf/supervisor-uwsgi.conf /etc/supervisor/conf.d/uwsgi.conf
WORKDIR /project
RUN npm install
RUN python manage.py collectstatic --noinput
CMD /usr/bin/supervisord -n -c /project/conf/supervisor-uwsgi.conf