mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
Use the make build goal when creeating the docker image
This commit is contained in:
@@ -2,7 +2,7 @@ FROM golang:1.9.4-alpine3.7
|
||||
|
||||
ENV BIN=gosec
|
||||
|
||||
COPY dist/linux_amd64/$BIN /go/bin/$BIN
|
||||
COPY $BIN /go/bin/$BIN
|
||||
COPY docker-entrypoint.sh /usr/local/bin
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
2
Makefile
2
Makefile
@@ -28,7 +28,7 @@ release: bootstrap
|
||||
@echo "Releasing the gosec binary..."
|
||||
goreleaser release
|
||||
|
||||
image: release
|
||||
image: build
|
||||
@echo "Building the Docker image..."
|
||||
docker build -t $(IMAGE_REPO)/$(BIN):$(GIT_TAG) .
|
||||
docker tag $(IMAGE_REPO)/$(BIN):$(GIT_TAG) $(IMAGE_REPO)/$(BIN):latest
|
||||
|
||||
Reference in New Issue
Block a user