Mairaaa commited on
Commit
8f97965
·
verified ·
1 Parent(s): b627e65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
@@ -16,13 +16,15 @@ RUN apt-get update && apt-get install -y \
16
  # Set the working directory
17
  WORKDIR /app
18
 
 
 
 
19
  # Copy requirements and install Python dependencies
20
- COPY requirements.txt /tmp/requirements.txt
21
  RUN pip install --no-cache-dir --upgrade pip && \
22
- pip install --no-cache-dir -r /tmp/requirements.txt
23
 
24
  # Expose the default Streamlit port
25
  EXPOSE 8501
26
 
27
  # Command to run the app
28
- CMD ["streamlit", "run", "app.py"]
 
1
+ FROM python:3.9-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
 
16
  # Set the working directory
17
  WORKDIR /app
18
 
19
+ # Copy application files
20
+ COPY . /app
21
+
22
  # Copy requirements and install Python dependencies
 
23
  RUN pip install --no-cache-dir --upgrade pip && \
24
+ pip install --no-cache-dir -r /app/requirements.txt
25
 
26
  # Expose the default Streamlit port
27
  EXPOSE 8501
28
 
29
  # Command to run the app
30
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]