containers-syncthing/Dockerfile

20 lines
548 B
Text
Raw Normal View History

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
# Syncthing runs with Sutty's uid and gid so ownership is kept, because
# they are not synced.
RUN getent group 82 || addgroup -g 82 -S www-data
RUN adduser -s /bin/sh -G www-data -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
2022-03-02 16:06:38 +00:00
COPY ./syncthingd.sh /usr/local/bin/syncthingd
2019-09-11 01:32:07 +00:00
EXPOSE 22000
EXPOSE 22000/udp
VOLUME /home/syncthing