Optimize Docker build

This commit is contained in:
2026-01-05 19:04:40 +01:00
parent 36cb87dd84
commit 7e3152c9ca
71 changed files with 256197 additions and 4 deletions

View File

@@ -2,15 +2,17 @@ FROM python:3.12-slim
WORKDIR /app
COPY ./api-resources/ ./api-resources/
COPY requirements.txt .
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=5000
EXPOSE 5000
CMD ["python", "app.py"]
CMD ["python", "app.py"]