ARG ALPINE_VERSION=3.13.6 ARG BASE_IMAGE=sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " COPY ./syncthing_start.sh /usr/local/bin/syncthing_start # Syncthing runs with Sutty's uid and gid so ownership is kept, because # they are not synced. RUN addgroup -g 82 -S syncthing RUN adduser -s /bin/sh -G syncthing -D -u 1000 -h /home/syncthing syncthing RUN apk add --no-cache ca-certificates daemonize syncthing COPY ./monit.conf /etc/monit.d/syncthing.conf EXPOSE 22000 EXPOSE 22000/udp VOLUME /home/syncthing