Fix controller group in Alpine
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
e1ee5104e3
commit
a24cabb4b9
|
@ -44,7 +44,7 @@ COPY --from=builder /workspace/source-controller /usr/local/bin/
|
|||
# https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-354316460
|
||||
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
|
||||
RUN addgroup -S controller && adduser -S -g controller controller
|
||||
RUN addgroup -S controller && adduser -S controller -G controller
|
||||
|
||||
USER controller
|
||||
|
||||
|
|
Loading…
Reference in New Issue