Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -8,8 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 8 |
|
| 9 |
# Set the TRANSFORMERS_CACHE environment variable
|
| 10 |
ENV CODE /code
|
|
|
|
| 11 |
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Create the cache directory and adjust permissions
|
| 14 |
RUN chmod -R 777 $CODE
|
| 15 |
|
|
|
|
| 8 |
|
| 9 |
# Set the TRANSFORMERS_CACHE environment variable
|
| 10 |
ENV CODE /code
|
| 11 |
+
ENV CACHE /.cache
|
| 12 |
|
| 13 |
|
| 14 |
+
RUN mkdir -p $CACHE \
|
| 15 |
+
&& chmod -R 777 $CACHE
|
| 16 |
+
|
| 17 |
# Create the cache directory and adjust permissions
|
| 18 |
RUN chmod -R 777 $CODE
|
| 19 |
|