Skip to content

Commit

Permalink
Merge pull request #166 from mackerelio/omit-symbol-table
Browse files Browse the repository at this point in the history
Omit symbol table and debug information from the executable
  • Loading branch information
itchyny authored Jul 26, 2018
2 parents 55a8e8b + b878d3a commit 6f843c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:alpine3.7
FROM golang:alpine3.7 AS builder
RUN apk add --no-cache make git
WORKDIR /go/src/github.com/mackerelio/mkr/
COPY . .
RUN make build

FROM alpine:3.7
RUN apk add --no-cache ca-certificates
COPY --from=0 /go/src/github.com/mackerelio/mkr/mkr /usr/local/bin/
COPY --from=builder /go/src/github.com/mackerelio/mkr/mkr /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/mkr"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test: test-deps
go test -v ./...

build: deps
go build -ldflags "-X main.gitcommit=$(CURRENT_REVISION)" -o $(BIN) .
go build -ldflags "-w -s -X main.gitcommit=$(CURRENT_REVISION)" -o $(BIN) .

lint: test-deps
go vet ./...
Expand Down

0 comments on commit 6f843c9

Please sign in to comment.