Skip to content

Commit fc46d9c

Browse files
authored
Merge pull request #103 from jharshman/publish-to-dockerhub
publish-to-dockerhub: Add Dockerfile
2 parents efaec0f + 39096af commit fc46d9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:latest as builder
2+
WORKDIR /statsdaemon/
3+
COPY . .
4+
RUN CGO_ENABLED=0 go build -o statsdaemon
5+
6+
FROM alpine:latest
7+
COPY --from=builder /statsdaemon/statsdaemon /usr/local/bin/statsdaemon
8+
ENTRYPOINT ["statsdaemon"]

0 commit comments

Comments
 (0)