Skip to content

Commit

Permalink
go install instead of build
Browse files Browse the repository at this point in the history
  • Loading branch information
rusenask committed Dec 12, 2017
1 parent 452bff2 commit 03c8218
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 @@ -5,7 +5,7 @@ RUN make build

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=0 /go/src/github.com/keel-hq/keel/cmd/keel/keel /bin/keel
COPY --from=0 /go/bin/keel /bin/keel
ENTRYPOINT ["/bin/keel"]

EXPOSE 9300
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test:

build:
@echo "++ Building keel"
CGO_ENABLED=0 GOOS=linux cd cmd/keel && go build -a -tags netgo -ldflags "$(LDFLAGS)" -o keel .
CGO_ENABLED=0 GOOS=linux go install -ldflags "$(LDFLAGS) -w -s" github.com/keel-hq/keel/cmd/keel

image:
docker build -t karolisr/keel:alpha -f Dockerfile .
Expand Down

0 comments on commit 03c8218

Please sign in to comment.