johnnas12 commited on
Commit
1c9853c
·
verified ·
1 Parent(s): 4aabba6

chore: docker file permission issue

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -2,12 +2,20 @@ FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
 
 
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Set the Hugging Face cache directory to a location with potentially more permissive permissions
6
+ # We'll create this directory and ensure the default user has write access.
7
+ ENV HF_HOME=/app/huggingface_cache
8
+
9
  RUN apt-get update && apt-get install -y \
10
  build-essential \
11
  curl \
12
  git \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Create the cache directory and set permissions
16
+ RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
17
+
18
+
19
  COPY requirements.txt ./
20
  COPY src/ ./src/
21