Skip to content

Commit

Permalink
make docker image slimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Nov 15, 2021
1 parent 876ef73 commit c4fb8f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ WORKDIR /build
COPY ./ /build/
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o git-ops-update ./cmd/git-ops-update

FROM alpine
FROM alpine:latest as certs
RUN apk add --update --no-cache ca-certificates

FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/git-ops-update /bin/git-ops-update
WORKDIR /workdir
ENTRYPOINT ["/bin/git-ops-update"]

0 comments on commit c4fb8f4

Please sign in to comment.