Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfabrice authored and syberalexis committed Nov 30, 2020
1 parent 5d357c2 commit e4ad784
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.14 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN CGO_ENABLED=0 GOOS=linux go build -a -o linky-exporter cmd/linky-exporter/main.go


FROM alpine:3
COPY --from=builder /build/linky-exporter .
RUN addgroup -S exporter && adduser -S exporter -G exporter
USER exporter
ENTRYPOINT [ "./linky-exporter" ]

0 comments on commit e4ad784

Please sign in to comment.