Files
scrypted/install/docker/Dockerfile.systemd
2025-02-23 18:54:58 -08:00

24 lines
917 B
Docker

ARG BASE="noble-lite"
FROM ghcr.io/koush/scrypted-common:${BASE}
RUN apt -y update && apt -y install nano net-tools dnsutils dnsmasq ifupdown vlan bridge-utils iptables netplan.io nftables
RUN rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service
RUN rm -f /etc/systemd/system/sysinit.target.wants/systemd-resolved.service
RUN bash -c 'echo include "/etc/nftables.d/*.conf"\; >> /etc/nftables.conf'
RUN mkdir -p /etc/nftables.d
RUN systemctl enable nftables
WORKDIR /
# cache bust
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
ARG SCRYPTED_INSTALL_VERSION="latest"
RUN test -n "$SCRYPTED_INSTALL_VERSION"
RUN npx -y scrypted@latest install-server ${SCRYPTED_INSTALL_VERSION}
COPY scrypted.service /etc/systemd/system/scrypted.service
RUN ln -s /etc/systemd/system/scrypted.service /etc/systemd/system/multi-user.target.wants/scrypted.service
WORKDIR /
CMD ["/sbin/init"]