Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 15, 2024
1 parent bb6688b commit 3d4f2df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions home-assistant-addon-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
ARG BUILD_FROM
FROM $BUILD_FROM

# Install nodejs and specific npm version to fix
# install stalling on armv7/armhf
# (cf. https://github.com/nodejs/docker-node/issues/1946)
RUN apk add --no-cache --update nodejs-current
RUN apk add --no-cache --update npm

# Install a chosen NPM version
ENV NPM_VERSION=10.3.0
RUN npm install -g npm@"${NPM_VERSION}"
RUN apk add --no-cache --update npm=10.3.0

# Install express + http-proxy-middleware packages for
# ha-proxy.js
Expand Down
3 changes: 2 additions & 1 deletion home-assistant-addon-proxy/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -x
tempio -conf /data/options.json -template /ha-proxy.js.gtpl -out /bin/ha-proxy.js
chmod a+rx /bin/ha-proxy.js
ls -la /usr/bin/node
ls -la /bin/ha-proxy.js
exec /usr/bin/node /bin/ha-proxy.js
exec /bin/ha-proxy.js

0 comments on commit 3d4f2df

Please sign in to comment.