Skip to content

Commit

Permalink
remove linker flags and update dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed Jan 20, 2021
1 parent b726c3e commit 7e0b33e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.15.2-buster as builder
WORKDIR /statsd/
WORKDIR /statsdaemon/
COPY . .
RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -o statsdaemon
RUN CGO_ENABLED=0 go build -o statsdaemon

FROM alpine:latest
COPY --from=builder /statsd/statsdaemon /usr/local/bin/statsdaemon
COPY --from=builder /statsdaemon/statsdaemon /usr/local/bin/statsdaemon
ENTRYPOINT ["statsdaemon"]

0 comments on commit 7e0b33e

Please sign in to comment.