21 lines
456 B
Docker
21 lines
456 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Installer les dépendances Python
|
|
COPY backend/src/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copier le code
|
|
COPY backend/src /app/backend/src
|
|
COPY frontend /app/frontend
|
|
COPY components /app/components
|
|
COPY img /app/img
|
|
COPY index.html /app/
|
|
COPY *.json /app/
|
|
COPY vite.config.ts /app/
|
|
|
|
# Port Flask
|
|
EXPOSE 5000
|
|
|
|
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "backend.src.api:app"]
|