More docker stuff

This commit is contained in:
2018-01-06 13:42:59 -05:00
parent 468112b33a
commit 7a96b7dc89
2 changed files with 20 additions and 6 deletions

View File

@ -1,11 +1,20 @@
FROM python:3
EXPOSE 8000
ADD . /
# Add files
RUN mkdir /site
WORKDIR /site
ADD . /site/
# Set up configs
RUN rm OACPL/settings.py
RUN mv OACPL/settings.base.py OACPL/settings.py
# Install packages
RUN pip install -r requirements.txt
# Initialize Django
RUN python3 manage.py makemigrations --no-input
RUN python3 manage.py migrate --no-input
RUN python3 manage.py collectstatic --no-input
EXPOSE 8000