sagar008 commited on
Commit
78bdebc
·
verified ·
1 Parent(s): 7735398

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -1,16 +1,15 @@
1
  FROM python:3.10
2
 
3
- # Set working directory
4
  WORKDIR /app
5
-
6
- # Create writable cache directory
7
  RUN mkdir -p /app/cache
8
 
9
- # Copy all files
 
 
 
 
10
  COPY . .
11
 
12
- # Install dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Run app with uvicorn
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
 
 
4
  RUN mkdir -p /app/cache
5
 
6
+ ENV TRANSFORMERS_CACHE=/app/cache \
7
+ HF_HOME=/app/cache \
8
+ HF_DATASETS_CACHE=/app/cache \
9
+ XDG_CACHE_HOME=/app/cache
10
+
11
  COPY . .
12
 
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]