diff --git a/Dockerfile b/Dockerfile index 21a425f..57b3d38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ COPY ./syncthingd.sh /usr/local/bin/syncthingd # 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 getent group 82 || addgroup -g 82 -S www-data +RUN adduser -s /bin/sh -G www-data -D -u 1000 -h /home/syncthing syncthing RUN apk add --no-cache ca-certificates daemonize syncthing