ink85 commited on
Commit
afb39a0
·
verified ·
1 Parent(s): 6235c78

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,13 +1,21 @@
1
- # Use a minimal base image with Python 3.9 installed
2
  FROM python:3.10-slim
3
 
 
4
  WORKDIR /app
5
 
 
6
  COPY requirements.txt .
7
- RUN pip install -r requirements.txt
8
 
 
 
 
 
9
  COPY . .
10
 
 
11
  EXPOSE 7860
12
 
 
13
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
1
+ # Use a lightweight Python image
2
  FROM python:3.10-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy requirements first (for caching)
8
  COPY requirements.txt .
 
9
 
10
+ # Install Python dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy project files
14
  COPY . .
15
 
16
+ # Expose port 7860 for Streamlit
17
  EXPOSE 7860
18
 
19
+ # Run the Streamlit app on 0.0.0.0:7860
20
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
21
+