Basic API to fetch data from maxmind geoip databases over http
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.10.3-alpine3.8 AS build
|
||||
|
||||
WORKDIR /go/src/github.com/abh/geoipapi
|
||||
ADD . /go/src/github.com/abh/geoipapi
|
||||
RUN go install -v ./...
|
||||
|
||||
#FROM alpine:3.7
|
||||
FROM quay.io/ntppool/dnsmapper:geoip-data-201807
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
RUN addgroup geoip && adduser -D -G geoip geoip
|
||||
WORKDIR /geoip/
|
||||
COPY --from=build /go/bin/geoipapi /bin/
|
||||
|
||||
USER geoip
|
||||
|
||||
CMD ["/bin/geoipapi"]
|
Reference in New Issue
Block a user