File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:alpine as golang
2
+
2
3
RUN apk add -U --no-cache ca-certificates git make
3
4
4
5
COPY go.mod go.sum /src/
@@ -7,7 +8,9 @@ WORKDIR /src
7
8
RUN GOPROXY=direct go mod download
8
9
9
10
COPY . /src
10
- RUN FLAVOR=nightly CGO_ENABLED=0 GOPROXY=direct make
11
+
12
+ ARG flavor=custom
13
+ RUN FLAVOR="$flavor" CGO_ENABLED=0 GOPROXY=direct make
11
14
12
15
FROM scratch
13
16
COPY LICENSE BINARY_LICENSE THIRDPARTY /
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ artifacts: ## Create CloudFormation ar
67
67
.PHONY : artifacts
68
68
69
69
docker : # # Build a Docker image, currently only supports x86 hosts
70
- docker build --platform=linux/amd64 --push -t $(DOCKER_IMAGE ) :$(DOCKER_IMAGE_VERSION ) .
70
+ docker build --build-arg flavor= $( FLAVOR ) -- platform=linux/amd64 --push -t $(DOCKER_IMAGE ) :$(DOCKER_IMAGE_VERSION ) .
71
71
.PHONY : docker
72
72
73
73
docker-login :
You can’t perform that action at this time.
0 commit comments