From dbd0f8f5114682e9681d478e2890802090c3831d Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Wed, 15 Aug 2018 09:45:37 +0200 Subject: [PATCH] Use the make build goal when creeating the docker image --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4cfb40..750299d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Makefile b/Makefile index 644a8a0..c251929 100644 --- a/Makefile +++ b/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