QuentinL52 commited on
Commit
2c95b57
·
verified ·
1 Parent(s): 56331d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -11,6 +11,8 @@ ENV HF_HOME=/tmp/cache \
11
  HF_HUB_CACHE=/tmp/cache/hub \
12
  SENTENCE_TRANSFORMERS_HOME=/tmp/cache/sentence_transformers
13
 
 
 
14
  WORKDIR /app
15
 
16
  RUN apt-get update && apt-get install -y \
@@ -26,8 +28,9 @@ COPY . .
26
 
27
  RUN mkdir -p /tmp/cache/hub \
28
  /tmp/cache/sentence_transformers \
29
- /tmp/vector_store && \
30
- chmod -R 777 /tmp
 
31
 
32
  EXPOSE 7860
33
 
 
11
  HF_HUB_CACHE=/tmp/cache/hub \
12
  SENTENCE_TRANSFORMERS_HOME=/tmp/cache/sentence_transformers
13
 
14
+ ENV XDG_DATA_HOME="/app/.local/share"
15
+
16
  WORKDIR /app
17
 
18
  RUN apt-get update && apt-get install -y \
 
28
 
29
  RUN mkdir -p /tmp/cache/hub \
30
  /tmp/cache/sentence_transformers \
31
+ /tmp/vector_store \
32
+ /app/.local/share && \
33
+ chmod -R 777 /tmp /app/.local
34
 
35
  EXPOSE 7860
36