initial django build using docker and gunicorn.

This commit is contained in:
WGAVermeer
2026-03-06 14:52:57 +01:00
parent 5a31e9b920
commit 1bdd63fd2a
10 changed files with 224 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.14-alpine
RUN mkdir /app
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN pip install --upgrade pip
COPY requirements.txt /app/
COPY gunicorn.conf.py /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY ./quatsh/ /app/
EXPOSE 8000
CMD ["gunicorn", "website.wsgi:application"]