mirror of
https://github.com/byReqz/probehost2.git
synced 2024-11-14 11:23:13 +00:00
13 lines
254 B
Docker
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"]
|