-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |