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 df17304 commit b11449c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ 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"]
ENTRYPOINT ["pwd && ls -al"]


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

0 comments on commit b11449c

Please sign in to comment.