mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
22 lines
573 B
Docker
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
|