Sami2000 commited on
Commit
4aa6460
·
verified ·
1 Parent(s): 64a5e51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,17 +1,19 @@
1
  FROM python:3.11-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy files
7
  COPY . .
8
 
9
  # Install dependencies
10
  RUN pip install --upgrade pip
11
  RUN pip install -r requirements.txt
12
 
13
- # Expose port
14
  EXPOSE 8501
15
 
16
- # Run Streamlit app
17
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
1
  FROM python:3.11-slim
2
 
3
+ # Set the working directory
4
  WORKDIR /app
5
 
6
+ # Copy all files from the repository into the container
7
  COPY . .
8
 
9
  # Install dependencies
10
  RUN pip install --upgrade pip
11
  RUN pip install -r requirements.txt
12
 
13
+ # Streamlit runs on port 8501 by default
14
  EXPOSE 8501
15
 
16
+ # Launch Streamlit correctly
17
+ ENTRYPOINT ["streamlit", "run"]
18
+ CMD ["app.py", "--server.address=0.0.0.0", "--server.port=8501"]
19
+