Hari022 commited on
Commit
157ef0c
·
verified ·
1 Parent(s): 89815a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,21 +1,12 @@
1
- # Base image
2
  FROM python:3.10-slim
3
 
4
- # Set environment
5
- ENV PYTHONDONTWRITEBYTECODE=1
6
- ENV PYTHONUNBUFFERED=1
7
-
8
  WORKDIR /app
9
 
10
- # Install requirements
11
  COPY requirements.txt .
12
- RUN pip install --upgrade pip && pip install -r requirements.txt
13
 
14
- # Copy app files
15
  COPY . .
16
 
17
- # Expose Streamlit port for Hugging Face
18
  EXPOSE 7860
19
 
20
- # Run app
21
- 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 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"]