MasteredUltraInstinct commited on
Commit
0f74b93
·
verified ·
1 Parent(s): 74a4a8f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,14 +1,14 @@
1
  FROM python:3.10-slim
2
 
3
- # Set working directory
4
- WORKDIR /app
5
-
6
  # Install dependencies
7
- COPY requirements.txt .
8
- RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy application files
11
- COPY . .
 
 
 
 
12
 
13
- # Expose FastAPI app
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
 
 
 
3
  # Install dependencies
4
+ RUN pip install --no-cache-dir fastapi uvicorn transformers
 
5
 
6
+ # Create writable cache dir
7
+ RUN mkdir -p /data/cache
8
+
9
+ # Copy app
10
+ COPY app.py /app/app.py
11
+ WORKDIR /app
12
 
13
+ # Run
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]