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