mirror of
https://github.com/koush/scrypted.git
synced 2026-03-05 10:52:01 +00:00
36 lines
1.3 KiB
Docker
36 lines
1.3 KiB
Docker
################################################################
|
|
# Begin section generated from template/Dockerfile.common.footer
|
|
################################################################
|
|
FROM common
|
|
|
|
# avahi advertiser support
|
|
RUN apt-get -y install \
|
|
libnss-mdns \
|
|
avahi-discover \
|
|
libavahi-compat-libdnssd-dev
|
|
|
|
# copy configurations and scripts
|
|
COPY fs /
|
|
|
|
# s6 process supervisor
|
|
ARG S6_OVERLAY_VERSION=3.1.1.2
|
|
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
|
RUN case "$(uname -m)" in \
|
|
x86_64) S6_ARCH='x86_64';; \
|
|
armv7l) S6_ARCH='armhf';; \
|
|
aarch64) S6_ARCH='aarch64';; \
|
|
*) echo "Your system architecture isn't supported."; exit 1 ;; \
|
|
esac \
|
|
&& cd /tmp \
|
|
&& set -x \
|
|
&& curl -SLOf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz \
|
|
&& tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \
|
|
&& curl -SLOf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz \
|
|
&& tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz
|
|
|
|
ENTRYPOINT ["/init"]
|
|
|
|
################################################################
|
|
# End section generated from template/Dockerfile.common.footer
|
|
################################################################
|