dhani10 commited on
Commit
44dcb46
·
verified ·
1 Parent(s): e4f12b8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,16 +4,16 @@ FROM python:3.9-slim
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy the requirements file and install dependencies
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy the hosting script and model
12
  COPY app.py .
13
- COPY model /app/model
14
 
15
- # Expose the port
16
  EXPOSE 8501
17
 
18
  # Run the Streamlit application
19
- CMD ["streamlit", "run", "app.py"]
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy requirements and install dependencies
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy the hosting script and model
12
  COPY app.py .
13
+ COPY model ./model
14
 
15
+ # Expose Streamlit default port
16
  EXPOSE 8501
17
 
18
  # Run the Streamlit application
19
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]