napstablook911 commited on
Commit
f2858a1
·
verified ·
1 Parent(s): 3a947b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -2,6 +2,11 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
2
 
3
  WORKDIR /app
4
 
5
+ # Crea la directory della cache e imposta i permessi
6
+ RUN mkdir -p /app/hf_cache && chmod -R 777 /app/hf_cache
7
+ ENV HF_HOME /app/hf_cache
8
+ ENV TRANSFORMERS_CACHE /app/hf_cache
9
+
10
  RUN apt-get update && apt-get install -y \
11
  build-essential \
12
  curl \