ofermend commited on
Commit
859e27e
·
verified ·
1 Parent(s): d00992d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -7,15 +7,15 @@ COPY ./requirements.txt /app/requirements.txt
7
  RUN pip3 install --no-cache-dir --upgrade pip
8
  RUN pip3 install --no-cache-dir wheel setuptools build
9
  RUN pip3 install --no-cache-dir --use-pep517 -r /app/requirements.txt
10
-
11
- RUN mkdir -p /usr/local/lib/python3.11/site-packages/llama_index/core/_static/tiktoken_cache \
12
- && chown -R 1000:1000 /usr/local/lib/python3.11/site-packages/llama_index
13
 
14
  # User
15
  RUN useradd -m -u 1000 user
16
  USER user
17
  ENV HOME /home/user
18
  ENV PATH $HOME/.local/bin:$PATH
 
 
 
19
 
20
  WORKDIR $HOME
21
  RUN mkdir app
 
7
  RUN pip3 install --no-cache-dir --upgrade pip
8
  RUN pip3 install --no-cache-dir wheel setuptools build
9
  RUN pip3 install --no-cache-dir --use-pep517 -r /app/requirements.txt
 
 
 
10
 
11
  # User
12
  RUN useradd -m -u 1000 user
13
  USER user
14
  ENV HOME /home/user
15
  ENV PATH $HOME/.local/bin:$PATH
16
+ ENV XDG_CACHE_HOME=/home/user/.cache
17
+
18
+ RUN mkdir -p $XDG_CACHE_HOME/llama_index/tiktoken_cache
19
 
20
  WORKDIR $HOME
21
  RUN mkdir app