Tim Luka Horstmann
commited on
Commit
·
a7ba255
1
Parent(s):
cb8303f
updated dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -11,6 +11,13 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
libffi-dev \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
# Copy requirements file
|
15 |
COPY requirements.txt .
|
16 |
|
|
|
11 |
libffi-dev \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
+
# Set environment variable for transformers cache
|
15 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
16 |
+
ENV HF_HOME=/app/cache
|
17 |
+
|
18 |
+
# Create cache directory and ensure it's writable
|
19 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
20 |
+
|
21 |
# Copy requirements file
|
22 |
COPY requirements.txt .
|
23 |
|