Files
n3wt-school/Back-End/Dockerfile
2025-02-07 08:01:47 +01:00

22 lines
573 B
Docker

# Dockerfile
# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:3.12.7
WORKDIR /Back-End
# Allows docker to cache installed dependencies between builds
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install pymupdf
# Mounts the application code to the image
COPY . .
EXPOSE 8080
ENV DJANGO_SETTINGS_MODULE N3wtSchool.settings
ENV DJANGO_SUPERUSER_PASSWORD=admin
ENV DJANGO_SUPERUSER_USERNAME=admin
ENV DJANGO_SUPERUSER_EMAIL=admin@n3wtschool.com