Skip to content

Commit

Permalink
revert distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosyya committed Aug 14, 2024
1 parent c3fd185 commit 6670921
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN cd /gnfd-qa-test-monitor \
&& go build -o build/monitor main.go

# Pull greenfield into a second stage deploy alpine container
FROM alpine:3.17 AS deploy
FROM alpine:3.17

ARG USER=sp
ARG USER_UID=1000
Expand All @@ -40,10 +40,6 @@ WORKDIR ${WORKDIR}

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


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

ENTRYPOINT ["/app/monitor"]

0 comments on commit 6670921

Please sign in to comment.