Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Lange committed Mar 15, 2022
1 parent 88a7ace commit 68ff00c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:latest as gobuilder


ADD ./* /Workingdir
WORKDIR /Workingdir

ARG BuildPath=/go/bin/prometheus_varnish_exporter

RUN go build -o $BuildPath

FROM varnish

EXPOSE 9131
VOLUME /var/lib/varnish
ENTRYPOINT ["/usr/local/bin/prometheus_varnish_exporter"]
COPY --from=gobuilder /go/bin/prometheus_varnish_exporter /usr/local/bin

0 comments on commit 68ff00c

Please sign in to comment.