Alexandre-Numind commited on
Commit
831c02b
·
verified ·
1 Parent(s): 0e5a5c5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -8
Dockerfile CHANGED
@@ -10,17 +10,19 @@ ENV OPENAI_API_KEY=EMPTY
10
  ENV GRADIO_SERVER_NAME=0.0.0.0
11
  ENV GRADIO_SERVER_PORT=7860
12
 
13
- ENV VLLM_PORT=8000
14
- ENV MAX_MODEL_LEN=8192
15
  ENV GPU_MEMORY_UTILIZATION=0.90
16
 
17
- ENV NUEXTRACT_MAX_TOKENS=5000
18
  ENV NUEXTRACT_EXAMPLE_DIR=/home/user/app/examples
19
  ENV NUEXTRACT_ASSETS_DIR=/home/user/app/assets
20
 
21
- ENV HF_HOME=/data/.cache/huggingface
22
- ENV TRANSFORMERS_CACHE=/data/.cache/huggingface
23
- ENV VLLM_CACHE_ROOT=/data/.cache/vllm
 
 
24
 
25
  RUN pip install --no-cache-dir \
26
  gradio \
@@ -36,8 +38,12 @@ COPY --chown=user:user start.sh /home/user/app/start.sh
36
  COPY --chown=user:user assets /home/user/app/assets
37
  COPY --chown=user:user examples /home/user/app/examples
38
 
39
- RUN chown -R user:user /home/user/app && \
40
- chmod +x /home/user/app/start.sh
 
 
 
 
41
 
42
  USER user
43
 
 
10
  ENV GRADIO_SERVER_NAME=0.0.0.0
11
  ENV GRADIO_SERVER_PORT=7860
12
 
13
+ ENV VLLM_PORT=8001
14
+ ENV MAX_MODEL_LEN=18000
15
  ENV GPU_MEMORY_UTILIZATION=0.90
16
 
17
+ ENV NUEXTRACT_MAX_TOKENS=15000
18
  ENV NUEXTRACT_EXAMPLE_DIR=/home/user/app/examples
19
  ENV NUEXTRACT_ASSETS_DIR=/home/user/app/assets
20
 
21
+ ENV HF_HOME=/home/user/.cache/huggingface
22
+ ENV HUGGINGFACE_HUB_CACHE=/home/user/.cache/huggingface/hub
23
+ ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface
24
+ ENV VLLM_CACHE_ROOT=/home/user/.cache/vllm
25
+ ENV XDG_CACHE_HOME=/home/user/.cache
26
 
27
  RUN pip install --no-cache-dir \
28
  gradio \
 
38
  COPY --chown=user:user assets /home/user/app/assets
39
  COPY --chown=user:user examples /home/user/app/examples
40
 
41
+ RUN mkdir -p \
42
+ /home/user/.cache/huggingface \
43
+ /home/user/.cache/huggingface/hub \
44
+ /home/user/.cache/vllm \
45
+ && chown -R user:user /home/user \
46
+ && chmod +x /home/user/app/start.sh
47
 
48
  USER user
49