Skip to content

Commit

Permalink
publish-to-dockerhub: Add Dockerfile
Browse files Browse the repository at this point in the history
Adding Dockerfile to provide ability to run as a container workload.
  • Loading branch information
jharshman committed Jan 21, 2021
1 parent efaec0f commit 39096af
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 39096af

Please sign in to comment.