Skip to content

Commit

Permalink
Update to Go 1.22 and Alpine 3.20.0
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jun 8, 2024
1 parent eb5ba77 commit f8c3e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/openfaas/license-check:0.4.1 as license-check

# Build stage
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down Expand Up @@ -40,7 +40,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 \
-o faas-cli

# CICD stage
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18 as root
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20.0 as root

ARG REPO_URL

Expand All @@ -57,7 +57,7 @@ ENV PATH=$PATH:/usr/bin/
ENTRYPOINT [ "faas-cli" ]

# Release stage
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.16.2 as release
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20.0 as release

ARG REPO_URL

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.redist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/openfaas/license-check:0.4.1 as license-check

# Build stage
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 as builder

ARG GIT_COMMIT
ARG VERSION
Expand Down Expand Up @@ -70,7 +70,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build --ldflags "-s -w \
-o faas-cli-arm64

# Release stage
FROM alpine:3.18 as release
FROM alpine:3.20.0 as release

RUN apk --no-cache add ca-certificates git

Expand Down

0 comments on commit f8c3e0f

Please sign in to comment.