ShabazKnowde commited on
Commit
65e2ad9
1 Parent(s): 3b7796e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,13 +1,16 @@
1
  # Use the official Python 3.10.9 image
2
  FROM python:3.10.9
3
 
 
 
 
4
  # Copy the current directory contents into the container at .
5
  COPY . .
6
 
7
  # Set the working directory to /
8
  WORKDIR /
9
 
10
- # Set the TRANSFORMERS_CACHE environment variable to a directory where the user has write permissions
11
  ENV TRANSFORMERS_CACHE=/cache
12
 
13
  # Install requirements.txt
 
1
  # Use the official Python 3.10.9 image
2
  FROM python:3.10.9
3
 
4
+ # Create a directory for the cache with write permissions
5
+ RUN mkdir /cache && chmod 777 /cache
6
+
7
  # Copy the current directory contents into the container at .
8
  COPY . .
9
 
10
  # Set the working directory to /
11
  WORKDIR /
12
 
13
+ # Set the TRANSFORMERS_CACHE environment variable to the created cache directory
14
  ENV TRANSFORMERS_CACHE=/cache
15
 
16
  # Install requirements.txt