Add bug tracking COPY with setuid bit

https://github.com/moby/moby/issues/37830
[CI SKIP]
This commit is contained in:
Joe Groocock 2018-09-12 12:33:50 +01:00
parent f4877b1283
commit 6e081e3694
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -159,6 +159,7 @@ SHELL ["/bin/sh", "-exc"]
COPY --from=builder /output/ /
# Workaround for Docker bug (not retaining setuid bit)
# https://github.com/moby/moby/issues/37830
RUN chmod 4755 usr/bin/ping usr/bin/su
ENV ENV="/etc/profile"