ReactLover commited on
Commit
314e48b
·
verified ·
1 Parent(s): aae7362

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
  FROM python:3.10-slim
2
 
3
- # Set environment variables for writable cache location
 
 
 
4
  ENV HF_HOME=/app/cache
 
5
  ENV HF_HUB_CACHE=/app/cache/hub
6
 
7
  WORKDIR /app
 
1
  FROM python:3.10-slim
2
 
3
+ # Create a writable cache folder
4
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
5
+
6
+ # Set environment variables for Hugging Face cache
7
  ENV HF_HOME=/app/cache
8
+ ENV TRANSFORMERS_CACHE=/app/cache
9
  ENV HF_HUB_CACHE=/app/cache/hub
10
 
11
  WORKDIR /app