add group only if missing
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2022-03-07 16:20:32 -03:00
parent efbae9d84e
commit f94c0be06d

View file

@ -8,7 +8,7 @@ ARG ALPINE_VERSION
MAINTAINER f <f@sutty.nl>
ENV RAILS_ENV production
RUN addgroup -g 82 -S www-data
RUN getent group 82 || addgroup -g 82 -S www-data
RUN adduser -s /bin/sh -G www-data -h /srv -D rails
RUN install -dm 750 -o rails -g www-data /srv