mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Use the make build goal when creeating the docker image
This commit is contained in:
parent
f06a84ebaa
commit
dbd0f8f511
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ FROM golang:1.9.4-alpine3.7
|
||||||
|
|
||||||
ENV BIN=gosec
|
ENV BIN=gosec
|
||||||
|
|
||||||
COPY dist/linux_amd64/$BIN /go/bin/$BIN
|
COPY $BIN /go/bin/$BIN
|
||||||
COPY docker-entrypoint.sh /usr/local/bin
|
COPY docker-entrypoint.sh /usr/local/bin
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@ release: bootstrap
|
||||||
@echo "Releasing the gosec binary..."
|
@echo "Releasing the gosec binary..."
|
||||||
goreleaser release
|
goreleaser release
|
||||||
|
|
||||||
image: release
|
image: build
|
||||||
@echo "Building the Docker image..."
|
@echo "Building the Docker image..."
|
||||||
docker build -t $(IMAGE_REPO)/$(BIN):$(GIT_TAG) .
|
docker build -t $(IMAGE_REPO)/$(BIN):$(GIT_TAG) .
|
||||||
docker tag $(IMAGE_REPO)/$(BIN):$(GIT_TAG) $(IMAGE_REPO)/$(BIN):latest
|
docker tag $(IMAGE_REPO)/$(BIN):$(GIT_TAG) $(IMAGE_REPO)/$(BIN):latest
|
||||||
|
|
Loading…
Reference in a new issue