Skip to content

Commit

Permalink
test distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosyya committed Aug 14, 2024
1 parent 9cf2d78 commit b74e756
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile.distroless
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b74e756

Please sign in to comment.