ajout des Dockerfile & compose

This commit is contained in:
Tie 2026-04-10 02:12:18 +02:00
parent b22231c8b6
commit 19a0bdb2bb
4 changed files with 147 additions and 0 deletions

25
Dockerfile.frontend Normal file
View file

@ -0,0 +1,25 @@
FROM python:3.12-slim
WORKDIR /app
RUN apt update && apt install libjpeg-dev zlib1g-dev build-essential -y
RUN pip install uv
COPY pyproject.toml requirements.txt ./
RUN uv add -r requirements.txt
COPY frontend ./frontend
WORKDIR /app/frontend
EXPOSE 8080
#ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=3000
# Variable d'environnement pour l'URL du backend
# Peut être définie via docker-compose.yml
ENV BACKEND_URL="http://backend_entwine:8090"
CMD ["uv", "run", "uvicorn", "main:app", "--reload", "--host", "0.0.0.0", "--port", "8080"]