omgy commited on
Commit
c19d1e4
·
verified ·
1 Parent(s): 9b58e0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -1,15 +1,12 @@
1
- FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
 
5
- COPY requirements.txt /app/
6
- RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY . /app
9
 
10
- # Run on CPU only
11
- ENV DEVICE=-1
12
 
13
- # Hugging Face token should be injected as an env var
14
- # Example: docker run -e HF_TOKEN=your_token image_name
15
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9
2
 
3
+ WORKDIR /code
4
 
5
+ COPY requirements.txt /code/
6
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
7
 
8
+ COPY . /code
9
 
10
+ EXPOSE 7860
 
11
 
 
 
12
  CMD ["python", "app.py"]