Add su-exec download for changing to non-root user (#7768)

Fixes #7767
This commit is contained in:
Nitish Tiwari 2019-06-11 22:02:16 +05:30 committed by Harshavardhana
parent d3a2efbf91
commit d90d4841b8
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ COPY --from=0 /usr/bin/check-user /usr/bin/check-user
COPY dockerscripts/docker-entrypoint.sh /usr/bin/
RUN \
apk add --no-cache ca-certificates 'curl>7.61.0' && \
apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]