Skip to content

Commit

Permalink
distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosyya committed Aug 14, 2024
1 parent c3fd185 commit ee0eee5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ WORKDIR ${WORKDIR}

COPY --from=builder /gnfd-qa-test-monitor/build/* ${WORKDIR}/
RUN chown -R ${USER_UID}:${USER_GID} ${WORKDIR}
USER ${USER_UID}:${USER_GID}

# ENTRYPOINT ["/app/monitor"]


# distroless image.
FROM gcr.io/distroless/static-debian11
COPY --from=deploy /app/monitor /
COPY --from=deploy /app/monitor /app/monitor
USER ${USER_UID}:${USER_GID}
ENTRYPOINT ["/monitor"]
ENTRYPOINT ["/app/monitor"]

0 comments on commit ee0eee5

Please sign in to comment.