Commit 8183b2df authored by Sergio Alonso's avatar Sergio Alonso

docker: supervisor settings

parent 266da01a
FROM python:3.4-slim
RUN apt-get update && apt-get install -y \
apt-utils \
gcc \
gettext \
git \
libpq-dev \
postgresql-client \
sqlite3 \
make \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
# Update OS
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive && \
apt-get install -y \
apt-utils \
gcc \
gettext \
git \
libpq-dev \
postgresql-client \
sqlite3 \
make \
supervisor \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
ENV DJANGO_VERSION 1.10
......@@ -24,10 +33,10 @@ ADD . /code/
ARG SECRET_KEY
RUN python manage.py makemigrations --settings=educational_heritage.settings.local
RUN python manage.py migrate --settings=educational_heritage.settings.local
RUN make configure
RUN make db
EXPOSE 8000
CMD [ "python", "manage.py", "runserver_plus", "--cert /tmp/cert", "--settings=educational_heritage.settings.local", "0.0.0.0:8000" ]
CMD ["/usr/bin/supervisord"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment