Skip to content

Commit

Permalink
fix: dockerfile image version of second stage (#30)
Browse files Browse the repository at this point in the history
* fix: dockerfile image version of second stage

* fix: dockerfile image version of second stage
  • Loading branch information
braghettos authored May 23, 2024
1 parent 150a90a commit d7e0727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o /bin/manager cmd/main.go && \

# Deployment environment
# ----------------------
FROM gcr.io/distroless/static:nonroot
FROM golang:1.22.3-alpine3.18

# ENV GOCACHE='/tmp/.cache'
# RUN mkdir -p "$GOCACHE/go-build" && chmod -R 1777 "$GOCACHE"
ENV GOCACHE='/tmp/.cache'
RUN mkdir -p "$GOCACHE/go-build" && chmod -R 1777 "$GOCACHE"

# COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /bin/manager /bin/manager

ENTRYPOINT ["/bin/manager"]
ENTRYPOINT ["/bin/manager"]

0 comments on commit d7e0727

Please sign in to comment.