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 # Build the manager binary
FROM golang:1.20 AS builder FROM golang:1.22 AS builder
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
@@ -14,7 +14,7 @@ RUN go mod download
# Copy the go source # Copy the go source
COPY cmd/main.go cmd/main.go COPY cmd/main.go cmd/main.go
COPY api/ api/ COPY api/ api/
COPY internal/controller/ internal/controller/ COPY internal/ internal/
# Build # Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command # the GOARCH has not a default value to allow the binary be built according to the host where the command
+2 -2
View File
@@ -15,7 +15,7 @@ IMAGE_TAG_BASE ?= kkb0318.github.io/irsa-manager
# Image URL to use all building/pushing image targets # Image URL to use all building/pushing image targets
IMG ?= controller:latest IMG ?= ghcr.io/kkb0318/irsa-manager:latest
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN)) ifeq (,$(shell go env GOBIN))
@@ -65,7 +65,7 @@ GOLANGCI_LINT_VERSION ?= v1.57.2
.PHONY: all .PHONY: all
all: fmt vet lint generate manifests kustomize helmify generate-docs all: fmt vet lint generate manifests kustomize helmify generate-docs mock
##@ Development ##@ Development