Spaces:
Paused
Paused
fix node version, venv
Browse files- Dockerfile +2 -2
- start_with_sync.sh +2 -1
Dockerfile
CHANGED
|
@@ -35,14 +35,14 @@ ENV HOME=/home/appuser
|
|
| 35 |
# This ensures a clean and controlled Node.js/npm environment
|
| 36 |
ENV NVM_DIR /home/appuser/.nvm
|
| 37 |
RUN mkdir -p $NVM_DIR
|
| 38 |
-
ENV NODE_VERSION
|
| 39 |
# Specify a compatible Node.js version, matching the earlier error message's requirement
|
| 40 |
|
| 41 |
# Optionally, if a specific npm version is absolutely required by the application
|
| 42 |
# and not provided by the Node.js version installed by nvm:
|
| 43 |
# If a specific npm version like 11.5.2 was truly needed: npm install -g npm@11.5.2
|
| 44 |
|
| 45 |
-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.
|
| 46 |
. "$NVM_DIR/nvm.sh" && \
|
| 47 |
nvm install $NODE_VERSION && \
|
| 48 |
nvm use $NODE_VERSION && \
|
|
|
|
| 35 |
# This ensures a clean and controlled Node.js/npm environment
|
| 36 |
ENV NVM_DIR /home/appuser/.nvm
|
| 37 |
RUN mkdir -p $NVM_DIR
|
| 38 |
+
ENV NODE_VERSION 22
|
| 39 |
# Specify a compatible Node.js version, matching the earlier error message's requirement
|
| 40 |
|
| 41 |
# Optionally, if a specific npm version is absolutely required by the application
|
| 42 |
# and not provided by the Node.js version installed by nvm:
|
| 43 |
# If a specific npm version like 11.5.2 was truly needed: npm install -g npm@11.5.2
|
| 44 |
|
| 45 |
+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \
|
| 46 |
. "$NVM_DIR/nvm.sh" && \
|
| 47 |
nvm install $NODE_VERSION && \
|
| 48 |
nvm use $NODE_VERSION && \
|
start_with_sync.sh
CHANGED
|
@@ -110,7 +110,8 @@ echo "Starting Open WebUI..."
|
|
| 110 |
export WEBUI_SECRET_KEY="${WEBUI_SECRET_KEY:-$(openssl rand -hex 32)}"
|
| 111 |
|
| 112 |
# Start Open WebUI in background
|
| 113 |
-
|
|
|
|
| 114 |
WEBUI_PID=$!
|
| 115 |
|
| 116 |
# Wait for Open WebUI process
|
|
|
|
| 110 |
export WEBUI_SECRET_KEY="${WEBUI_SECRET_KEY:-$(openssl rand -hex 32)}"
|
| 111 |
|
| 112 |
# Start Open WebUI in background
|
| 113 |
+
# deactivate uv
|
| 114 |
+
deactivate && /app/backend/start.sh &
|
| 115 |
WEBUI_PID=$!
|
| 116 |
|
| 117 |
# Wait for Open WebUI process
|