From af9766972d1ff9a8faa30d436cd800229689edf1 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 8 May 2023 13:46:42 +0200 Subject: [PATCH] root: fix geoipupdate build (#5521) * root: fix geoipupdate build Signed-off-by: Jens Langhammer * USER root it is Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ec932b112..099843185 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,11 +47,12 @@ COPY ./go.sum /work/go.sum RUN go build -o /work/authentik ./cmd/server/ # Stage 5: MaxMind GeoIP -FROM docker.io/maxmindinc/geoipupdate:v5.1 as geoip +FROM ghcr.io/maxmind/geoipupdate:v5.1 as geoip ENV GEOIPUPDATE_EDITION_IDS="GeoLite2-City" ENV GEOIPUPDATE_VERBOSE="true" +USER root RUN --mount=type=secret,id=GEOIPUPDATE_ACCOUNT_ID \ --mount=type=secret,id=GEOIPUPDATE_LICENSE_KEY \ mkdir -p /usr/share/GeoIP && \