Files
geoipapi/Dockerfile
Ask Bjørn Hansen 0b876543d5
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
Update Go and dependencies
2025-03-23 23:02:33 -07:00

22 lines
419 B
Docker

FROM golang:1.24-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"]