1
0
mirror of https://github.com/securego/gosec.git synced 2024-12-28 21:08:22 +02:00

Use the make build goal when creeating the docker image

This commit is contained in:
Cosmin Cojocar 2018-08-15 09:45:37 +02:00
parent f06a84ebaa
commit dbd0f8f511
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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