Somunia commited on
Commit
6bfd1d4
1 Parent(s): 0f48a24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,15 +1,11 @@
1
  # Use the base image from your Docker container
2
  FROM trcoot/cpu-casuallm:latest
3
 
4
- # Install any additional dependencies or files needed
5
- # RUN pip install -r requirements.txt
6
-
7
- # Set the environment variable for the cache directory
8
- ENV TRANSFORMERS_CACHE=/app/.cache
9
 
10
  # Create the cache directory and give the appropriate permissions
11
  RUN mkdir -p /app/.cache && chmod 777 /app/.cache
12
 
13
-
14
  # Start the application (modify this based on your app's entry point)
15
  CMD ["python", "app.py"]
 
1
  # Use the base image from your Docker container
2
  FROM trcoot/cpu-casuallm:latest
3
 
4
+ # Set the environment variable for the Hugging Face cache directory
5
+ ENV HF_HOME=/app/.cache
 
 
 
6
 
7
  # Create the cache directory and give the appropriate permissions
8
  RUN mkdir -p /app/.cache && chmod 777 /app/.cache
9
 
 
10
  # Start the application (modify this based on your app's entry point)
11
  CMD ["python", "app.py"]