Upload files to "/"
This commit is contained in:
parent
721dd0404c
commit
4eb3347a06
5 changed files with 96 additions and 0 deletions
25
Dockerfile.frontend
Normal file
25
Dockerfile.frontend
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue