Skip to content

Commit

Permalink
Bump golang to 1.21.2 and alpine to 3.18
Browse files Browse the repository at this point in the history
Signed-off-by: Neelesh Jain <neiljain@users.noreply.github.com>
  • Loading branch information
neiljain committed Oct 8, 2023
1 parent b2868dd commit 6a9ff59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# builder image
FROM golang:1.19-alpine3.17 as builder
FROM golang:1.21.2-alpine3.18 AS builder

ARG COMMIT_SHA
ARG VERSION_TAG
Expand All @@ -12,7 +12,7 @@ WORKDIR /build
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X ${GO_MOD_PATH}/config.CommitSHA=${COMMIT_SHA} -X ${GO_MOD_PATH}/config.Version=${VERSION_TAG}" -a -o prom-aggregation-gateway .

# generate clean, final image for end users
FROM alpine:3.17
FROM alpine:3.18
COPY --chown=nobody:nogroup --from=builder /build/prom-aggregation-gateway .

USER 65534
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/zapier/prom-aggregation-gateway

go 1.19
go 1.21

require (
github.com/gin-contrib/cors v1.4.0
Expand Down
20 changes: 5 additions & 15 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a9ff59

Please sign in to comment.