ipd: my own ifconfig.co
This commit is contained in:
parent
4a6d612d25
commit
626aed57e5
1 changed files with 14 additions and 0 deletions
14
ipd/Dockerfile
Normal file
14
ipd/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM golang:latest as builder
|
||||
RUN go get -tags netgo github.com/mpolden/ipd/...
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk add --update --no-cache ca-certificates curl geoip
|
||||
RUN sh /etc/periodic/monthly/geoip
|
||||
COPY --from=builder /go/bin/ipd /usr/bin/ipd
|
||||
EXPOSE 808
|
||||
ENTRYPOINT ipd \
|
||||
--country-db /usr/share/GeoIP/GeoIP.dat \
|
||||
--city-db /usr/share/GeoIP/GeoLiteCity.dat \
|
||||
--port-lookup \
|
||||
--reverse-lookup \
|
||||
--listen 0.0.0.0:8080
|
Loading…
Reference in a new issue