Skip to content

Commit 71a83f1

Browse files
committed
update docker to bash
1 parent d402042 commit 71a83f1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ build: tidy ## Builds CLI binary
6060
-extldflags '-static'" \
6161
-a -mod vendor -o bin/vulctl internal/cmd/main.go
6262

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+
6375
.PHONY: setup
6476
setup: ## Creates the GCP resources
6577
terraform -chdir=./setup init

internal/cmd/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags="\
1414
-extldflags '-static'" \
1515
-a -mod vendor -o vulctl internal/cmd/main.go
1616

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"]

0 commit comments

Comments
 (0)