oacpl/Dockerfile
ztimson f4111cc264
Some checks failed
Build / Build & Push Dockerfile (push) Failing after 7s
Updated readme, legal & ci/cd
2023-12-14 19:06:07 -05:00

23 lines
453 B
Docker

FROM python:3
# 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
ENTRYPOINT python3
CMD ["manage.py", "runserver", "0.0.0.0:8000"]