mirror of
https://github.com/byReqz/probehost2.git
synced 2024-11-24 07:24:55 +00:00
Compare commits
No commits in common. "5c8a39ad755804453fcb6c32cdf31e020818757a" and "2866c9915d8cbd2a912de766318192035b18354c" have entirely different histories.
5c8a39ad75
...
2866c9915d
@ -2,14 +2,11 @@ FROM golang:latest as builder
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go get -u
|
RUN go get -u
|
||||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o probehost2
|
RUN CGO_ENABLED=0 go build -o probehost2
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk add mtr iputils nmap-nping traceroute
|
RUN apk add mtr iputils nmap-nping
|
||||||
RUN adduser -D probehost2
|
|
||||||
COPY --from=builder /build/probehost2 /
|
COPY --from=builder /build/probehost2 /
|
||||||
RUN touch /probehost2.log
|
RUN touch /probehost2.log
|
||||||
RUN chown probehost2:users /probehost2.log
|
|
||||||
USER probehost2
|
|
||||||
CMD ["/probehost2"]
|
CMD ["/probehost2"]
|
||||||
|
@ -8,8 +8,6 @@ StartLimitBurst=5
|
|||||||
StartLimitIntervalSec=20
|
StartLimitIntervalSec=20
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=1000
|
|
||||||
Group=1000
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
ExecStart=/bin/probehost2 --logfilepath "/var/log/probehost2.log" --port 8000
|
ExecStart=/bin/probehost2 --logfilepath "/var/log/probehost2.log" --port 8000
|
||||||
|
Loading…
Reference in New Issue
Block a user