Spaces:
Sleeping
Sleeping
Moshe Ofer
commited on
Commit
·
a5ab062
1
Parent(s):
b582a51
Initial commit for Hugging Face Space
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -10,6 +10,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
10 |
git && \
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Copy the application files into the container
|
14 |
COPY . /app
|
15 |
|
|
|
10 |
git && \
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
+
# Create a writable cache directory
|
14 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
15 |
+
|
16 |
+
# Set the environment variable for Hugging Face Transformers cache
|
17 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
18 |
+
|
19 |
# Copy the application files into the container
|
20 |
COPY . /app
|
21 |
|