From 0a8dc2503cfd26c109d04e34ff096520084d54d9 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 2 Mar 2022 13:00:36 -0300 Subject: [PATCH] create data group only when needed apparently the group started existing from alpine 3.14 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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