Changement de Streamlit vers Flask
This commit is contained in:
parent
761f3d10aa
commit
6a4cff83f2
21 changed files with 361 additions and 133 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,6 +1,6 @@
|
|||
FROM python:3.10-slim
|
||||
FROM python:3.13-slim-bookworm
|
||||
|
||||
EXPOSE 8051
|
||||
EXPOSE 5000
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -10,9 +10,14 @@ RUN pip install -r requirements.txt
|
|||
|
||||
# Copy the app's code
|
||||
COPY config.py ./
|
||||
COPY main.py ./
|
||||
COPY app.py ./
|
||||
COPY ressources ./ressources
|
||||
COPY templates ./templates
|
||||
COPY static ./static
|
||||
|
||||
# Set the environment variable for Flask
|
||||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_RUN_HOST=0.0.0.0
|
||||
|
||||
# Set the entrypoint to run the app
|
||||
ENTRYPOINT [ "streamlit", "run" ]
|
||||
CMD [ "main.py", "--server.port=8051", "--server.headless", "true", "--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false"]
|
||||
CMD ["flask", "run", "--port=5000"]
|
Loading…
Add table
Add a link
Reference in a new issue