fix dockerfile for build

This commit is contained in:
kkb0318
2024-04-23 21:59:53 +09:00
parent 9f3b213592
commit 5d64643d6a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.20 AS builder
FROM golang:1.22 AS builder
ARG TARGETOS
ARG TARGETARCH
@@ -14,7 +14,7 @@ RUN go mod download
# Copy the go source
COPY cmd/main.go cmd/main.go
COPY api/ api/
COPY internal/controller/ internal/controller/
COPY internal/ internal/
# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command