Files
geoipapi/Dockerfile
Ask Bjørn Hansen 6cf02cfb01
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing
build: update Go to 1.25
- Update Go version to 1.25 in go.mod
- Update Docker build image to golang:1.25-alpine
- Update CI pipeline to use golang:1.25
- Update dependencies to latest compatible versions
2025-10-04 01:21:15 -07:00

22 lines
419 B
Docker

FROM golang:1.25-alpine 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 alpine:3.21
USER root
RUN apk --no-cache add ca-certificates
RUN apk --no-cache upgrade
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 ["/start.sh"]