diff --git a/Dockerfile.distroless b/Dockerfile.distroless index 0e99163..5c9d980 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -18,12 +18,13 @@ RUN apk add --no-cache gcc libstdc++-dev libc-dev RUN cd /gnfd-qa-test-monitor \ && go build -o ./build/monitor main.go -RUN pwd && ls -al +RUN cd /gnfd-qa-test-monitor && pwd && ls -al FROM alpine:3.17 USER nonroot:nonroot WORKDIR /home/nonroot -COPY --from=builder --chown=nonroot:nonroot /gnfd-qa-test-monitor/build/monitor $WORKDIR -RUN pwd && ls -al +# COPY --from=builder --chown=nonroot:nonroot /gnfd-qa-test-monitor/build/monitor $WORKDIR +COPY --from=builder /gnfd-qa-test-monitor/build/monitor $WORKDIR +RUN cd /gnfd-qa-test-monitor && pwd && ls -al ENTRYPOINT ["./monitor"] \ No newline at end of file