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 8080 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