chelleboyer commited on
Commit
4e11e98
·
1 Parent(s): da824e6

Fix permissions for Hugging Face cache directory

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -20,8 +20,10 @@ COPY . .
20
  # Create necessary directories and set permissions
21
  RUN mkdir -p data/planogram001 && \
22
  mkdir -p .files && \
 
23
  chmod -R 777 .files && \
24
- chmod -R 777 data
 
25
 
26
  # Expose the port Chainlit runs on
27
  EXPOSE 8000
@@ -29,6 +31,8 @@ EXPOSE 8000
29
  # Set environment variables
30
  ENV PYTHONPATH=/app
31
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
 
 
32
 
33
  # Run the application
34
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]
 
20
  # Create necessary directories and set permissions
21
  RUN mkdir -p data/planogram001 && \
22
  mkdir -p .files && \
23
+ mkdir -p /.cache && \
24
  chmod -R 777 .files && \
25
+ chmod -R 777 data && \
26
+ chmod -R 777 /.cache
27
 
28
  # Expose the port Chainlit runs on
29
  EXPOSE 8000
 
31
  # Set environment variables
32
  ENV PYTHONPATH=/app
33
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
34
+ ENV TRANSFORMERS_CACHE=/.cache
35
+ ENV HF_HOME=/.cache
36
 
37
  # Run the application
38
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]