File: Dockerfile

package info (click to toggle)
prometheus-tplink-plug-exporter 0.2.0+git20200622.cc4a731-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 120 kB
  • sloc: sh: 18; makefile: 8
file content (10 lines) | stat: -rw-r--r-- 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
FROM golang:1.12-alpine AS builder
ADD . /src
RUN apk add --no-cache git
WORKDIR /src
RUN go build main.go

FROM alpine:latest
COPY --from=builder /src/main /tplink-plug-exporter
EXPOSE 9233
ENTRYPOINT ["/tplink-plug-exporter"]