From 5012ec506feca05a518e0ec7ead7b6cb294901a7 Mon Sep 17 00:00:00 2001 From: Rosyya Date: Wed, 14 Aug 2024 18:01:01 +0800 Subject: [PATCH] fix distroless image --- Dockerfile.distroless | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile.distroless b/Dockerfile.distroless index 2683b03..97e9105 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -22,5 +22,9 @@ FROM gcr.io/distroless/base-debian11 USER nonroot:nonroot WORKDIR /home/nonroot -COPY --from=builder --chown=nonroot:nonroot /gnfd-qa-test-monitor/build/monitor $WORKDIR -ENTRYPOINT ["./monitor"] \ No newline at end of file +# COPY --from=builder --chown=nonroot:nonroot /gnfd-qa-test-monitor/build/monitor $WORKDIR +# ENTRYPOINT ["./monitor"] + +COPY --from=builder --chown=nonroot:nonroot /gnfd-qa-test-monitor/build/* ${WORKDIR}/ + +ENTRYPOINT ["/app/monitor"] \ No newline at end of file