probehost2/docker/Dockerfile
2022-01-01 23:15:39 +01:00

13 lines
254 B
Docker

FROM golang:latest as builder
WORKDIR /build
COPY . .
RUN go get -u
RUN CGO_ENABLED=0 go build -o probehost2
FROM alpine:latest
RUN apk update
RUN apk add mtr iputils
COPY --from=builder /build/probehost2 /
RUN touch /probehost2.log
CMD ["/probehost2"]