From b74e756b049558c671ba1a4518e544c11180a8e0 Mon Sep 17 00:00:00 2001 From: Rosyya Date: Wed, 14 Aug 2024 18:34:33 +0800 Subject: [PATCH] test distroless image --- Dockerfile.distroless | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile.distroless b/Dockerfile.distroless index 8cfd7d9..5e81156 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -26,14 +26,12 @@ ARG USER=sp ARG USER_UID=1000 ARG USER_GID=1000 -ENV WORKDIR=/app +WORKDIR /app -WORKDIR ${WORKDIR} - -COPY --from=builder /gnfd-qa-test-monitor/build/* ${WORKDIR}/ +COPY --from=builder /gnfd-qa-test-monitor/build/* ${WORKDIR} RUN chown -R ${USER_UID}:${USER_GID} ${WORKDIR} USER ${USER_UID}:${USER_GID} -RUN cd /gnfd-qa-test-monitor && pwd && ls -al +RUN cd /app && pwd && ls -al ENTRYPOINT ["/app/monitor"] # USER nonroot:nonroot