Upgrade dependencies, prepare to use geoipupdate to update data
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-04-02 22:39:15 -07:00
parent 8f9d9ad6fe
commit e16ea1d5a9
355 changed files with 36 additions and 176943 deletions

View File

@@ -1,10 +1,11 @@
FROM golang:1.14.7-alpine3.12 AS build
FROM golang:1.18-alpine3.15 AS build
RUN apk --no-cache add git
WORKDIR /go/src/github.com/abh/geoipapi
ADD . /go/src/github.com/abh/geoipapi
RUN go install -v ./...
FROM quay.io/ntppool/dnsmapper:geoip-data-202007
FROM alpine:3.15
USER root
RUN apk --no-cache add ca-certificates
@@ -12,6 +13,8 @@ RUN addgroup geoip && adduser -D -G geoip geoip
WORKDIR /geoip/
COPY --from=build /go/bin/geoipapi /bin/
ADD start.sh /start.sh
USER geoip
CMD ["/bin/geoipapi"]
CMD ["/start.sh"]