From 40709e93de256f0f21521b596a2ae5c40446c63f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 12:51:37 +0200 Subject: [PATCH] core: bump maxmind/geoipupdate from v5.1 to v6.0 (#6240) * core: bump maxmind/geoipupdate from v5.1 to v6.0 Bumps maxmind/geoipupdate from v5.1 to v6.0. --- updated-dependencies: - dependency-name: maxmind/geoipupdate dependency-type: direct:production ... Signed-off-by: dependabot[bot] * use new flags Signed-off-by: Jens Langhammer --------- Signed-off-by: dependabot[bot] Signed-off-by: Jens Langhammer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77554df5a..4b05901ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,20 +47,18 @@ COPY ./go.sum /work/go.sum RUN go build -o /work/authentik ./cmd/server/ # Stage 5: MaxMind GeoIP -FROM ghcr.io/maxmind/geoipupdate:v5.1 as geoip +FROM ghcr.io/maxmind/geoipupdate:v6.0 as geoip ENV GEOIPUPDATE_EDITION_IDS="GeoLite2-City" ENV GEOIPUPDATE_VERBOSE="true" +ENV GEOIPUPDATE_ACCOUNT_ID_FILE="/run/secrets/GEOIPUPDATE_ACCOUNT_ID" +ENV GEOIPUPDATE_LICENSE_KEY_FILE="/run/secrets/GEOIPUPDATE_LICENSE_KEY" USER root RUN --mount=type=secret,id=GEOIPUPDATE_ACCOUNT_ID \ --mount=type=secret,id=GEOIPUPDATE_LICENSE_KEY \ mkdir -p /usr/share/GeoIP && \ - /bin/sh -c "\ - export GEOIPUPDATE_ACCOUNT_ID=$(cat /run/secrets/GEOIPUPDATE_ACCOUNT_ID); \ - export GEOIPUPDATE_LICENSE_KEY=$(cat /run/secrets/GEOIPUPDATE_LICENSE_KEY); \ - /usr/bin/entry.sh || echo 'Failed to get GeoIP database, disabling'; exit 0 \ - " + /bin/sh -c "/usr/bin/entry.sh || echo 'Failed to get GeoIP database, disabling'; exit 0" # Stage 6: Run FROM docker.io/python:3.11.4-slim-bullseye AS final-image