Skip to content

Commit

Permalink
Merge pull request #103 from jharshman/publish-to-dockerhub
Browse files Browse the repository at this point in the history
publish-to-dockerhub: Add Dockerfile
  • Loading branch information
jehiah committed Jan 21, 2021
2 parents efaec0f + 39096af commit fc46d9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:latest as builder
WORKDIR /statsdaemon/
COPY . .
RUN CGO_ENABLED=0 go build -o statsdaemon

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

0 comments on commit fc46d9c

Please sign in to comment.