Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,10 @@ WORKDIR /usr/src/app
|
|
| 7 |
# Install Python
|
| 8 |
RUN apt-get update && apt-get install -y python3.8 python3-pip
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy the current directory contents into the container at /usr/src/app
|
| 11 |
COPY . /usr/src/app
|
| 12 |
|
|
|
|
| 7 |
# Install Python
|
| 8 |
RUN apt-get update && apt-get install -y python3.8 python3-pip
|
| 9 |
|
| 10 |
+
# Set the cache directories to a path with write access
|
| 11 |
+
ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
|
| 12 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 13 |
+
|
| 14 |
# Copy the current directory contents into the container at /usr/src/app
|
| 15 |
COPY . /usr/src/app
|
| 16 |
|