Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,14 @@ WORKDIR /code
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.tx
|
| 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 |
|
| 16 |
COPY . .
|
| 17 |
|