containers-syncthing/Dockerfile

23 lines
641 B
Text
Raw Normal View History

FROM alpine:latest AS build
2019-09-10 23:10:18 +00:00
MAINTAINER "f <f@sutty.nl>"
2019-09-11 01:32:07 +00:00
COPY ./syncthing_start.sh /usr/local/bin/syncthing_start
2019-09-30 19:26:54 +00:00
RUN chmod 755 /usr/local/bin/syncthing_start
2019-09-11 01:32:07 +00:00
FROM sutty/monit:latest
# Syncthing runs with the same uid and gid for Sutty so ownership is
# kept, since ST doesn't sync these.
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
COPY ./monit.conf /etc/monit.d/syncthing.conf
COPY --from=build /usr/local/bin/syncthing_start /usr/local/bin/syncthing_start
2019-09-11 01:32:07 +00:00
EXPOSE 22000
EXPOSE 22000/udp
VOLUME /home/syncthing