Dockerfile update

This commit is contained in:
2026-02-22 20:46:03 +01:00 Verified
parent c197df1d48
commit bd4fd20ec0
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -3,14 +3,16 @@ FROM python:3.14-alpine
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=8080
ENV PYTHONPATH=/app
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app .
COPY . .
WORKDIR /app/backend
RUN mkdir -p /app/data
EXPOSE $PORT
CMD ["sh", "-c", "gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:$PORT"]
CMD ["sh", "-c", "gunicorn -w 4 -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:$PORT"]