Skip to content

Commit

Permalink
Use the make build goal when creeating the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar committed Aug 15, 2018
1 parent f06a84e commit dbd0f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbd0f8f

Please sign in to comment.