create data group only when needed
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

apparently the group started existing from alpine 3.14
This commit is contained in:
f 2022-03-02 13:00:36 -03:00
parent e994542de5
commit 0a8dc2503c

View file

@ -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