Skip to content

Commit 80fcb26

Browse files
committed
Drop the debug binaries
1 parent 098558c commit 80fcb26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN busybox tar xvf /dist.tgz && \
4343
busybox mkdir /db && busybox chown 65532:65532 /db && \
4444
busybox rm /usr/src/app/dumpdeps.pm /dist.tgz /bin/busybox
4545

46-
FROM gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS distroless-debug
46+
#FROM gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS distroless-debug
4747
FROM gcr.io/distroless/static-debian${DEBIAN_VERSION}:nonroot
4848
COPY --from=busybox /bin/busybox /bin/busybox
4949
SHELL ["/bin/busybox", "sh", "-c"]
@@ -52,7 +52,7 @@ RUN /bin/busybox rmdir /lib && /bin/busybox rm /bin/busybox
5252
USER nonroot
5353
COPY --link --from=build-tar / /
5454
# debug: docker run -it --entrypoint /busybox/sh ...
55-
COPY --link --from=distroless-debug /busybox /busybox
55+
#COPY --link --from=distroless-debug /busybox /busybox
5656
WORKDIR /usr/src/app
5757
SHELL ["/bin/sh", "-c"]
5858
EXPOSE 5000

0 commit comments

Comments
 (0)