first commit

This commit is contained in:
julien
2025-01-14 18:03:28 +01:00
commit eef986d77d
122 changed files with 2464 additions and 0 deletions

32
django/Dockerfile Normal file
View File

@ -0,0 +1,32 @@
# Fetching the base image
FROM python:3.12-alpine
# Setting up the work directory
WORKDIR /django
# Preventing python from writing pyc to docker container
ENV PYTHONDONTWRITEBYTECODE 1
# Flushing out python buffer
ENV PYTHONUNBUFFERED 1
# Updating the os
RUN apk update
# Installing python3
RUN apk add python3-dev
# Copying requirement file
COPY ./requirements.txt ./
# Upgrading pip version
RUN pip install --upgrade pip
# Installing Gunicorn
RUN pip install gunicorn
# Installing dependencies
RUN pip install --no-cache-dir -r ./requirements.txt
# Copying all the files in our project
COPY ./src .