Port 8051 et ajout Dockerfile
This commit is contained in:
parent
8e7483152a
commit
3e05e72a97
5 changed files with 28 additions and 3 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM python:3.10-slim
|
||||
|
||||
EXPOSE 8051
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install the app's dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Copy the app's code
|
||||
COPY main.py .
|
||||
|
||||
# Set the entrypoint to run the app
|
||||
ENTRYPOINT [ "streamlit", "run" ]
|
||||
CMD [ "main.py", "--server.port=8080", "--server.headless", "true", "--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false"]
|
Reference in a new issue