barathm111 commited on
Commit
b706dd0
·
verified ·
1 Parent(s): 753399a

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -28,10 +28,10 @@ EXPOSE 8000
28
  # Define environment variables
29
  ENV FLASK_APP=app.py
30
  ENV FLASK_RUN_HOST=0.0.0.0
31
- ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
32
 
33
- # Create the cache directory
34
- RUN mkdir -p /app/.cache/huggingface/hub
35
 
36
  # Run app.py when the container launches
37
  CMD ["flask", "run", "--port=8000"]
 
28
  # Define environment variables
29
  ENV FLASK_APP=app.py
30
  ENV FLASK_RUN_HOST=0.0.0.0
31
+ ENV HF_HOME=/app/.cache/huggingface
32
 
33
+ # Create the cache directory with appropriate permissions
34
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache/huggingface
35
 
36
  # Run app.py when the container launches
37
  CMD ["flask", "run", "--port=8000"]