forked from homebridge/docker-homebridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (28 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG S6_ARCH
FROM oznu/s6-node:14.17.3-${S6_ARCH:-amd64}
RUN apk add --no-cache git python2 python3 make g++ avahi-compat-libdns_sd avahi-dev dbus samba \
iputils sudo nano \
&& chmod 4755 /bin/ping \
&& mkdir /homebridge \
&& npm set global-style=true \
&& npm set audit=false \
&& npm set fund=false
RUN case "$(uname -m)" in \
x86_64) FFMPEG_ARCH='x86_64';; \
armv6l) FFMPEG_ARCH='armv6l';; \
armv7l) FFMPEG_ARCH='armv6l';; \
aarch64) FFMPEG_ARCH='aarch64';; \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -x \
&& curl -Lfs https://github.com/oznu/ffmpeg-for-homebridge/releases/download/v0.0.9/ffmpeg-alpine-${FFMPEG_ARCH}.tar.gz | tar xzf - -C / --no-same-owner
ENV PATH="${PATH}:/homebridge/node_modules/.bin"
ENV HOMEBRIDGE_VERSION=1.3.4
RUN npm install -g --unsafe-perm homebridge@${HOMEBRIDGE_VERSION}
ENV CONFIG_UI_VERSION=4.41.1 HOMEBRIDGE_CONFIG_UI=1 HOMEBRIDGE_CONFIG_UI_PORT=8581
RUN npm install -g --unsafe-perm homebridge-config-ui-x@${CONFIG_UI_VERSION}
WORKDIR /homebridge
VOLUME /homebridge
COPY root /
ARG AVAHI
ENV ENABLE_AVAHI="${AVAHI:-0}"