ipd: my own ifconfig.co

This commit is contained in:
Vincent Batts 2018-07-30 13:33:36 -04:00
parent 4a6d612d25
commit 626aed57e5
1 changed files with 14 additions and 0 deletions

14
ipd/Dockerfile Normal file
View 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