diff --git a/ipd/Dockerfile b/ipd/Dockerfile new file mode 100644 index 0000000..7f1c1b3 --- /dev/null +++ b/ipd/Dockerfile @@ -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