Damien Benveniste commited on
Commit
6490764
·
1 Parent(s): 7c6c7b7
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. entrypoint.sh +10 -0
Dockerfile CHANGED
@@ -10,9 +10,9 @@ ENV HF_HOME="/tmp/huggingface"
10
  ENV XDG_CACHE_HOME="/tmp/cache"
11
  ENV NUMBA_CACHE_DIR="/tmp/numba_cache"
12
  ENV OUTLINES_CACHE_DIR="/tmp/outlines_cache"
13
- ENV XDG_CONFIG_HOME="/.config"
14
  ENV VLLM_USE_MODELSCOPE="false"
15
  ENV VLLM_DISABLE_USAGE_STATS="true"
 
16
 
17
  # Ensure PATH includes common Python locations
18
  ENV PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
 
10
  ENV XDG_CACHE_HOME="/tmp/cache"
11
  ENV NUMBA_CACHE_DIR="/tmp/numba_cache"
12
  ENV OUTLINES_CACHE_DIR="/tmp/outlines_cache"
 
13
  ENV VLLM_USE_MODELSCOPE="false"
14
  ENV VLLM_DISABLE_USAGE_STATS="true"
15
+ ENV XDG_CONFIG_HOME="/tmp/config"
16
 
17
  # Ensure PATH includes common Python locations
18
  ENV PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
entrypoint.sh CHANGED
@@ -17,6 +17,16 @@ export VLLM_DISABLE_USAGE_STATS=true
17
  echo "Environment variables:"
18
  env
19
 
 
 
 
 
 
 
 
 
 
 
20
  # Check and set permissions for directories
21
  for dir in /tmp/huggingface /tmp/cache /tmp/numba_cache /tmp/outlines_cache /.config; do
22
  if [ ! -d "$dir" ]; then
 
17
  echo "Environment variables:"
18
  env
19
 
20
+ # Create and set permissions for the config directory
21
+ CONFIG_DIR=${XDG_CONFIG_HOME:-"/tmp/config"}
22
+
23
+ if [ ! -d "$CONFIG_DIR" ]; then
24
+ mkdir -p "$CONFIG_DIR"
25
+ fi
26
+ chmod -R 777 "$CONFIG_DIR"
27
+ echo "Permissions for $CONFIG_DIR:"
28
+ ls -la "$CONFIG_DIR"
29
+
30
  # Check and set permissions for directories
31
  for dir in /tmp/huggingface /tmp/cache /tmp/numba_cache /tmp/outlines_cache /.config; do
32
  if [ ! -d "$dir" ]; then