ozair23 commited on
Commit
d276275
·
verified ·
1 Parent(s): 7fc9335

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -3,12 +3,13 @@ FROM shahrukhsiddiq/diffusion-api:latest
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Ensure writable cache directory
7
- RUN mkdir -p /data && chmod -R 777 /data
 
 
 
 
8
 
9
- # Set cache environment variables
10
- ENV TRANSFORMERS_CACHE=/data
11
- ENV HF_HOME=/data
12
 
13
  # Expose FastAPI port
14
  EXPOSE 8000
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Create writable cache folder
7
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
8
+
9
+ # Redirect Hugging Face and Transformers cache
10
+ ENV TRANSFORMERS_CACHE=/app/cache
11
+ ENV HF_HOME=/app/cache
12
 
 
 
 
13
 
14
  # Expose FastAPI port
15
  EXPOSE 8000