-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 826 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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
git \
python \
python-dev \
python-setuptools \
python-pip \
nginx \
supervisor \
sqlite3 && \
pip install -U pip setuptools && \
rm -rf /var/lib/apt/lists/*
RUN pip install uwsgi
COPY restricted/requirements-base.txt /home/docker/code/restricted/
RUN pip install -r /home/docker/code/restricted/requirements-base.txt
COPY . /home/docker/code/
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
COPY restricted/nginx.conf /etc/nginx/sites-enabled/spoonyx
COPY restricted/supervisord.conf /etc/supervisor/conf.d/
RUN /home/docker/code/manage.py collectstatic --noinput
EXPOSE 8000
CMD ["supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]