From 6670921278c3b7c194617025de8071477a0e0819 Mon Sep 17 00:00:00 2001 From: Rosyya Date: Wed, 14 Aug 2024 16:57:18 +0800 Subject: [PATCH] revert distroless --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5179b0b..d6d41dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN cd /gnfd-qa-test-monitor \ && go build -o build/monitor main.go # Pull greenfield into a second stage deploy alpine container -FROM alpine:3.17 AS deploy +FROM alpine:3.17 ARG USER=sp ARG USER_UID=1000 @@ -40,10 +40,6 @@ WORKDIR ${WORKDIR} COPY --from=builder /gnfd-qa-test-monitor/build/* ${WORKDIR}/ RUN chown -R ${USER_UID}:${USER_GID} ${WORKDIR} - - -# distroless image. -FROM gcr.io/distroless/static-debian11 -COPY --from=deploy /app/monitor / USER ${USER_UID}:${USER_GID} -ENTRYPOINT ["/monitor"] \ No newline at end of file + +ENTRYPOINT ["/app/monitor"] \ No newline at end of file