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.
This commit is contained in:
10
Dockerfile
10
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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user