cryogenic22 commited on
Commit
48b92d8
·
verified ·
1 Parent(s): b2607f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -1,17 +1,5 @@
1
  FROM python:3.9-slim
2
-
3
  WORKDIR /code
4
-
5
- # Install dependencies first to cache them
6
- COPY requirements.txt .
7
- RUN pip install -r requirements.txt
8
-
9
- # Create cache directory
10
- RUN mkdir -p /cache && chmod 777 /cache
11
- ENV HF_HOME=/cache
12
-
13
- # Copy source files last since they change most often
14
- COPY static ./static/
15
- COPY app.py .
16
-
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9-slim
 
2
  WORKDIR /code
3
+ COPY app.py requirements.txt ./
4
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
5
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]