2021-10-03 23:19:00 +00:00
|
|
|
ARG ALPINE_VERSION=3.13.6
|
|
|
|
ARG BASE_IMAGE=sutty/monit
|
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
2019-09-10 23:10:18 +00:00
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2019-09-11 01:32:07 +00:00
|
|
|
|
2022-03-02 15:53:39 +00:00
|
|
|
COPY ./syncthingd.sh /usr/local/bin/syncthingd
|
2019-09-11 01:32:07 +00:00
|
|
|
|
2021-10-23 16:34:45 +00:00
|
|
|
# Syncthing runs with Sutty's uid and gid so ownership is kept, because
|
|
|
|
# they are not synced.
|
2020-09-07 18:58:38 +00:00
|
|
|
RUN addgroup -g 82 -S syncthing
|
2020-09-08 16:34:31 +00:00
|
|
|
RUN adduser -s /bin/sh -G syncthing -D -u 1000 -h /home/syncthing syncthing
|
2019-09-11 01:32:07 +00:00
|
|
|
|
2021-02-02 23:59:45 +00:00
|
|
|
RUN apk add --no-cache ca-certificates daemonize syncthing
|
2019-09-11 01:32:07 +00:00
|
|
|
|
2020-09-07 18:58:38 +00:00
|
|
|
COPY ./monit.conf /etc/monit.d/syncthing.conf
|
2019-09-11 01:32:07 +00:00
|
|
|
|
|
|
|
EXPOSE 22000
|
|
|
|
EXPOSE 22000/udp
|
|
|
|
|
|
|
|
VOLUME /home/syncthing
|