forked from marthoc/docker-homeseer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 984 Bytes
/
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
37
38
39
40
FROM mono:5.20.1.19
ENV S6_VERSION=v1.21.4.0
ENV LANG=en_US.UTF-8
ENV HOMESEER_VERSION=4_0_7_0
RUN apt-get update && apt-get install -y \
chromium \
flite \
wget \
nano \
iputils-ping \
net-tools \
etherwake \
ssh-client \
mosquitto-clients \
mono-vbnc \
mono-xsp4 \
avahi-discover \
libavahi-compat-libdnssd-dev \
libnss-mdns \
avahi-daemon avahi-utils mdns-scan \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& touch /DO_INSTALL
ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz /tmp/
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / \
&& tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin \
&& rm -rf /tmp/* /var/tmp/*
COPY rootfs /
ARG AVAHI
RUN [ "${AVAHI:-1}" = "1" ] || (echo "Removing Avahi" && rm -rf /etc/services.d/avahi /etc/services.d/dbus)
VOLUME [ "/HomeSeer" ]
EXPOSE 80 10200 10300 10401 11000
ENTRYPOINT [ "/init" ]