Navya-Sree commited on
Commit
357a797
·
verified ·
1 Parent(s): 17b356a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -2,11 +2,15 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy application files
10
  COPY . .
11
 
12
+ # Expose port required by Hugging Face Spaces
13
  EXPOSE 7860
14
 
15
+ # Launch application via Streamlit CLI
16
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]