Skip to content

Commit

Permalink
Upgrade to alpine:3.13.2 (#28)
Browse files Browse the repository at this point in the history
* Upgrade to alpine:3.13.2

Is there any reason for why we don't use scratch here, as we do in the other `Dockerfile`?

* Switch to scratch as we do locally in the release image, update to go:1.16.0

* Dont build in goreleaser

Co-authored-by: Bjørn Sørensen <[email protected]>
  • Loading branch information
Kasper Nissen and Bjørn Sørensen authored Mar 9, 2021
1 parent 790d9e8 commit 104b294
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14.6 as builder
FROM golang:1.16.0 as builder
WORKDIR /app
ENV CGO_ENABLED=0
ENV GOOS=linux
Expand Down
13 changes: 7 additions & 6 deletions Dockerfile-goreleaser
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:3.12.0
FROM golang:1.16.0 as builder

RUN apk update && \
apk add --no-cache \
ca-certificates

ENTRYPOINT [ "/release-manager-bot" ]
FROM scratch
WORKDIR /app

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

ENTRYPOINT [ "./release-manager-bot" ]

0 comments on commit 104b294

Please sign in to comment.