ST-THOMAS-OF-AQUINAS commited on
Commit
08fd2d0
·
verified ·
1 Parent(s): 72a3982

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,20 +1,16 @@
1
  FROM python:3.11-slim
2
 
3
- # Set environment variables for HF cache
4
- ENV TRANSFORMERS_CACHE=/tmp/hf_cache
5
- ENV HF_HOME=/tmp/hf_cache
6
-
7
  WORKDIR /app
8
 
9
- # Install dependencies
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy app
14
- COPY app.py .
15
 
16
- # Expose API port
17
  EXPOSE 7860
18
 
19
- # Run FastAPI
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
 
 
 
 
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements and install
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy app files
10
+ COPY . .
11
 
12
+ # Expose port
13
  EXPOSE 7860
14
 
15
+ # Start FastAPI app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]