File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,18 @@ build: tidy ## Builds CLI binary
60
60
-extldflags '-static'" \
61
61
-a -mod vendor -o bin/vulctl internal/cmd/main.go
62
62
63
+ .PHONY : image
64
+ image : # # Builds container image
65
+ docker build \
66
+ -t us-west1-docker.pkg.dev/cloudy-build/vulctl/vulctl:$(RELEASE_VERSION ) \
67
+ -t us-west1-docker.pkg.dev/cloudy-build/vulctl/vulctl:latest \
68
+ -f internal/cmd/Dockerfile \
69
+ --build-arg VERSION=$(RELEASE_VERSION ) \
70
+ --build-arg COMMIT=$(COMMIT ) \
71
+ --build-arg DATE=$(CURRENT_DATE ) \
72
+ .
73
+ docker push us-west1-docker.pkg.dev/cloudy-build/vulctl/vulctl --all-tags
74
+
63
75
.PHONY : setup
64
76
setup : # # Creates the GCP resources
65
77
terraform -chdir=./setup init
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags="\
14
14
-extldflags '-static'" \
15
15
-a -mod vendor -o vulctl internal/cmd/main.go
16
16
17
- FROM cgr.dev/chainguard/static :latest
18
- COPY --from=builder /src/vulctl /
19
- ENTRYPOINT ["/vulctl " ]
17
+ FROM cgr.dev/chainguard/bash :latest
18
+ COPY --from=builder /src/vulctl /usr/local/bin/
19
+ ENTRYPOINT ["/bin/bash " ]
You can’t perform that action at this time.
0 commit comments