wwforonce commited on
Commit
e14b416
·
1 Parent(s): fe2e65b

fix nvm PATH

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. start_with_sync.sh +1 -0
Dockerfile CHANGED
@@ -34,7 +34,7 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | b
34
  npm install -g npm@latest
35
 
36
  # Verify Node.js and npm versions
37
- RUN node -v && npm -v
38
 
39
  # Install Python packages
40
  RUN pip install --no-cache-dir \
 
34
  npm install -g npm@latest
35
 
36
  # Verify Node.js and npm versions
37
+ RUN . "$NVM_DIR/nvm.sh" && node -v && npm -v
38
 
39
  # Install Python packages
40
  RUN pip install --no-cache-dir \
start_with_sync.sh CHANGED
@@ -104,6 +104,7 @@ WEBUI_PID=$!
104
  # wait $WEBUI_PID
105
 
106
  source /add_bash_util.sh
 
107
 
108
  gh_install caddyserver/caddy linux_amd64.tar.gz /tmp/caddy.tar.gz
109
  mkdir -p /tmp/caddy
 
104
  # wait $WEBUI_PID
105
 
106
  source /add_bash_util.sh
107
+ . "$NVM_DIR/nvm.sh"
108
 
109
  gh_install caddyserver/caddy linux_amd64.tar.gz /tmp/caddy.tar.gz
110
  mkdir -p /tmp/caddy