Skip to content

Commit

Permalink
build: fix golang version in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
plaffitt committed Nov 19, 2024
1 parent e78e29c commit 5a09b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.19 AS builder
FROM --platform=${BUILDPLATFORM} golang:1.23-alpine3.20 AS builder

WORKDIR /workspace

Expand Down Expand Up @@ -38,7 +38,7 @@ RUN --mount=type=cache,target="/root/.cache/go-build" \
go build -ldflags="$LD_FLAGS" -o manager cmd/cache/main.go && \
go build -ldflags="$LD_FLAGS" -o registry-proxy cmd/proxy/main.go

FROM alpine:3.19 AS alpine
FROM alpine:3.20 AS alpine

COPY --from=builder /workspace/manager /usr/local/bin/
COPY --from=builder /workspace/registry-proxy /usr/local/bin/
Expand Down

0 comments on commit 5a09b13

Please sign in to comment.