Skip to content

Commit

Permalink
homebridge apt pkg 1.0.26; s6 overlay update; include .npmrc in /home…
Browse files Browse the repository at this point in the history
…bridge
  • Loading branch information
oznu committed Jul 2, 2022
1 parent 0a069c2 commit 87f39c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LABEL org.opencontainers.image.authors="oznu"
LABEL org.opencontainers.image.url="https://github.com/oznu/docker-homebridge"
LABEL org.opencontainers.image.licenses="GPL-3.0"

ENV S6_OVERLAY_VERSION=3.1.0.1 \
ENV S6_OVERLAY_VERSION=3.1.1.2 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_KEEP_ENV=1 \
ENABLE_AVAHI=1 \
Expand All @@ -15,12 +15,7 @@ ENV S6_OVERLAY_VERSION=3.1.0.1 \
UIX_CUSTOM_PLUGIN_PATH="/var/lib/homebridge/node_modules" \
PATH="/opt/homebridge/bin:/var/lib/homebridge/node_modules/.bin:$PATH" \
HOME="/home/homebridge" \
npm_config_prefix=/opt/homebridge \
npm_config_global_style=true \
npm_config_audit=false \
npm_config_fund=false \
npm_config_update_notifier=false \
npm_config_loglevel=error
npm_config_prefix=/opt/homebridge

RUN set -x \
&& apt-get update \
Expand Down Expand Up @@ -58,7 +53,7 @@ RUN case "$(uname -m)" in \
&& set -x \
&& curl -Lfs https://github.com/homebridge/ffmpeg-for-homebridge/releases/download/v0.1.0/ffmpeg-debian-${FFMPEG_ARCH}.tar.gz | tar xzf - -C / --no-same-owner

ENV HOMEBRIDGE_PKG_VERSION=1.0.25
ENV HOMEBRIDGE_PKG_VERSION=1.0.26

RUN case "$(uname -m)" in \
x86_64) DEB_ARCH='amd64';; \
Expand Down
6 changes: 6 additions & 0 deletions rootfs/defaults/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
audit = false
auto-install-peers = true
fund = false
global-style = true
loglevel = "error"
update-notifier = false
3 changes: 3 additions & 0 deletions rootfs/etc/s6-overlay/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ fi
# user defaults
[ -e /homebridge/startup.sh ] || cp /defaults/startup.sh /homebridge/startup.sh

# set the .npmrc file
cp /defaults/.npmrc /homebridge/.npmrc

# setup homebridge
mkdir -p /homebridge
if [ "$(realpath /var/lib/homebridge)" != "/homebridge" ]; then
Expand Down

0 comments on commit 87f39c2

Please sign in to comment.