gruhit-patel
commited on
Commit
·
bd6e41a
1
Parent(s):
0537e4b
Updated cache folder permission
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -8,10 +8,10 @@ COPY . .
|
|
8 |
WORKDIR /
|
9 |
|
10 |
# Create a new cache directory
|
11 |
-
RUN mkdir -p /path/custom_cache
|
12 |
|
13 |
# Set the environment's home path to the new cache file
|
14 |
-
ENV
|
15 |
|
16 |
# Install the requirements
|
17 |
RUN pip install --no-cache-dir -r /requirements.txt
|
|
|
8 |
WORKDIR /
|
9 |
|
10 |
# Create a new cache directory
|
11 |
+
RUN mkdir -p /path/custom_cache && TRANSFORMERS_CACHE /path/custom_cache
|
12 |
|
13 |
# Set the environment's home path to the new cache file
|
14 |
+
ENV TRANSFORMERS_CACHE=/path/custom_cache
|
15 |
|
16 |
# Install the requirements
|
17 |
RUN pip install --no-cache-dir -r /requirements.txt
|