From 5fd943db85397a04b25e6806285063ac74ac6b45 Mon Sep 17 00:00:00 2001 From: WGAVermeer <90707235+WGAVermeer@users.noreply.github.com> Date: Thu, 9 Apr 2026 10:34:37 +0200 Subject: [PATCH] cleaned up dockerfile, removed useless expose as the port is configured in the compose.yaml file. Moved standard ENV into buildfile as they should always be executed no matter the compose variant executed. --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 719c09a..019bfac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ FROM python:3.14-alpine +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 + WORKDIR /src COPY requirements.txt /src/ -COPY gunicorn.conf.py /src/ -COPY ./src/ /src/ - RUN pip install --upgrade pip && \ pip install --no-cache-dir -r requirements.txt -EXPOSE 8000 +COPY gunicorn.conf.py /src/ +COPY ./src/ /src/ CMD ["gunicorn", "website.wsgi:application"] -