Dattaluri commited on
Commit
3cf9aae
·
verified ·
1 Parent(s): 22ded96

Update Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +4 -4
Dockerfile.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Use official Python image
2
  FROM python:3.10-slim
3
 
4
  # Set working directory
@@ -8,11 +8,11 @@ WORKDIR /app
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy the rest of the code
12
  COPY . .
13
 
14
- # Expose port (Hugging Face expects 7860 for Gradio, 8501 for Streamlit)
15
  EXPOSE 8501
16
 
17
- # Command to launch your app
18
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ # Use official Python 3.10 image
2
  FROM python:3.10-slim
3
 
4
  # Set working directory
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Copy all files into container
12
  COPY . .
13
 
14
+ # Expose Streamlit port
15
  EXPOSE 8501
16
 
17
+ # Run Streamlit app
18
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]