Skip to content

Commit 061f014

Browse files
committed
small fix
1 parent 45b9167 commit 061f014

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Default base image for standalone builds. For addons, this is overridden by build.yaml.
22
ARG BUILD_FROM=nikolaik/python-nodejs:python3.12-nodejs23
3-
ARG NODE_VERSION=23 # Default Node.js version for addon OS setup
3+
ARG NODE_VERSION=22 # Default Node.js version for addon OS setup
44

55
FROM $BUILD_FROM AS base
66

@@ -52,12 +52,9 @@ RUN if echo "$BUILD_FROM" | grep -q "home-assistant"; then \
5252
mkdir -p /tmp/uv_test && uv venv /tmp/uv_test && rm -rf /tmp/uv_test && \
5353
# Install specific Node.js version for addon
5454
echo "Installing Node.js v${NODE_VERSION} for addon..." && \
55-
#curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
56-
# Ensure Node.js and npm are installed if using this path.
57-
# The line below was `sudo apt-get install -y nodejs npm`.
58-
# `sudo` is generally not available or needed in Dockerfiles.
59-
# Also, `apt-get update` should precede `apt-get install`.
60-
apt-get update && apt-get install -y nodejs npm && \
55+
curl -fsSL "https://deb.nodesource.com/setup_${NODE_VERSION}.x" -o nodesource_setup.sh && \
56+
bash nodesource_setup.sh && \
57+
apt-get update && apt-get install -y nodejs && \
6158
# S6-Overlay is assumed to be part of the Home Assistant base image.
6259
# Cleanup for addon OS setup
6360
echo "Cleaning up apt cache for addon OS setup..." && \

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ schema:
3535
image: "ghcr.io/ptbsare/home-assistant-addons/{arch}-addon-mcp-proxy-server" # Version will be appended by build
3636
startup: application
3737
boot: auto
38-
webui: "http://[HOST]:[PORT:3663]/"
38+
webui: "http://[HOST]:[PORT:3663]/admin"
3939
ingress: true
4040
panel_icon: "mdi:server-network-outline"
4141
panel_title: "MCP Proxy Server"

0 commit comments

Comments
 (0)