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