Priyanka-Ankam commited on
Commit
fc998e8
·
verified ·
1 Parent(s): dcd4f73

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -6
Dockerfile CHANGED
@@ -1,10 +1,19 @@
1
- FROM python:3.10
2
 
3
- WORKDIR /code
4
 
5
- COPY requirements.txt /code/requirements.txt
6
- RUN pip install -r requirements.txt
7
 
8
- COPY . /code
 
 
 
 
 
 
 
 
 
 
9
 
10
- CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
+ FROM python:3.10-slim
2
 
3
+ WORKDIR /app
4
 
5
+ # Copy dependencies
6
+ COPY requirements.txt .
7
 
8
+ # Install Python dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy all code
12
+ COPY . /app
13
+
14
+ # Expose the HF Spaces port
15
+ EXPOSE 7860
16
+
17
+ # Run the Streamlit app
18
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
19