Run as root user in debug image
This commit is contained in:
parent
e08335168c
commit
7cfc1f7a47
|
@ -30,7 +30,7 @@ ARG app
|
||||||
COPY --chown=root:root --chmod=0400 passwd /etc/passwd
|
COPY --chown=root:root --chmod=0400 passwd /etc/passwd
|
||||||
|
|
||||||
# run as nonroot
|
# run as nonroot
|
||||||
USER nonroot
|
USER root
|
||||||
|
|
||||||
# copy in binary
|
# copy in binary
|
||||||
COPY --from=build --chown=root:root --chmod=0005 /src/$app/$app /$app
|
COPY --from=build --chown=root:root --chmod=0005 /src/$app/$app /$app
|
||||||
|
|
Loading…
Reference in New Issue