create data group only when needed
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
parent
e994542de5
commit
0a8dc2503c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue