MasteredUltraInstinct commited on
Commit
75ef31c
Β·
verified Β·
1 Parent(s): eb203f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -5,10 +5,13 @@ WORKDIR /app
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY llm_service.py .
9
-
10
- # πŸ‘‡ Ensure the custom cache folder exists
11
  RUN mkdir -p /app/cache
12
 
 
 
 
 
 
13
  EXPOSE 7860
14
  CMD ["uvicorn", "llm_service:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ # πŸ‘‡ Create custom cache directory with proper permissions
 
 
9
  RUN mkdir -p /app/cache
10
 
11
+ # πŸ‘‡ Set TRANSFORMERS_CACHE permanently
12
+ ENV TRANSFORMERS_CACHE=/app/cache
13
+
14
+ COPY llm_service.py .
15
+
16
  EXPOSE 7860
17
  CMD ["uvicorn", "llm_service:app", "--host", "0.0.0.0", "--port", "7860"]