Soham Kolte
commited on
Commit
·
c716155
1
Parent(s):
fd33333
Fix cache permission error
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -4,6 +4,11 @@ FROM python:3.10-slim
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /code
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
# Install system dependencies required by OpenCV
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1-mesa-glx \
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /code
|
6 |
|
7 |
+
# --- FIX FOR PERMISSION ERROR ---
|
8 |
+
# Set an environment variable to use a writable directory for the cache
|
9 |
+
ENV HF_HOME=/tmp/huggingface_cache
|
10 |
+
ENV TORCH_HOME=/tmp/torch_cache
|
11 |
+
|
12 |
# Install system dependencies required by OpenCV
|
13 |
RUN apt-get update && apt-get install -y \
|
14 |
libgl1-mesa-glx \
|