oacpl/Dockerfile

22 lines
428 B
Docker
Raw Permalink Normal View History

2018-01-05 20:10:41 -05:00
FROM python:3
2018-01-06 13:42:59 -05:00
# Add files
RUN mkdir /site
WORKDIR /site
ADD . /site/
# Set up configs
2018-01-05 20:10:41 -05:00
RUN mv OACPL/settings.base.py OACPL/settings.py
2018-01-06 13:42:59 -05:00
# Install packages
2018-01-05 20:10:41 -05:00
RUN pip install -r requirements.txt
2018-01-06 13:42:59 -05:00
# Initialize Django
2018-01-05 20:10:41 -05:00
RUN python3 manage.py makemigrations --no-input
RUN python3 manage.py migrate --no-input
RUN python3 manage.py collectstatic --no-input
2018-01-06 13:42:59 -05:00
EXPOSE 8000
2023-12-14 19:06:07 -05:00
ENTRYPOINT python3
CMD ["manage.py", "runserver", "0.0.0.0:8000"]