Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -2,6 +2,12 @@ FROM python:3.9-slim
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
7 |
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
# Create cache directory with proper permissions
|
6 |
+
RUN mkdir -p /cache
|
7 |
+
ENV TRANSFORMERS_CACHE=/cache
|
8 |
+
ENV HF_HOME=/cache
|
9 |
+
RUN chmod 777 /cache
|
10 |
+
|
11 |
COPY ./requirements.txt /code/requirements.txt
|
12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
|