Airmanv commited on
Commit
ef17553
·
verified ·
1 Parent(s): 1b0c346

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,11 +1,7 @@
1
  FROM python:3.10
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
-
8
  COPY . .
9
-
10
- # Hugging Face Spaces run on port 7860 by default for Docker
11
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
  FROM python:3.10
2
+ WORKDIR /app
3
+ COPY requirements.txt .
4
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
5
  COPY . .
6
+ # Use port 7860 for Hugging Face Docker Spaces
 
7
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]