From 371b69bb7c544cb67bc817704c0a3e22c5c439bf Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Thu, 12 Oct 2023 14:38:16 +0200 Subject: [PATCH] build: Add missing NEXTAUTH_URL env variable --- Dockerfile | 4 +++- README.md | 2 -- scripts/docker-build-push.sh | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf2c7f40f..234cf1427 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ WORKDIR /usr/src/app # --build-arg KEYCLOAK_ID= \ # --build-arg KEYCLOAK_SECRET= \ # --build-arg KEYCLOAK_ISSUER= \ -# --build-arg NEXTAUTH_SECRET= +# --build-arg NEXTAUTH_SECRET= \ +# --build-arg NEXTAUTH_URL= ARG COMMIT ARG VECTOR_TILE_URL ARG MAPTILER_STYLE_KEY @@ -19,6 +20,7 @@ ARG KEYCLOAK_ID ARG KEYCLOAK_SECRET ARG KEYCLOAK_ISSUER ARG NEXTAUTH_SECRET +ARG NEXTAUTH_URL # Build app COPY package.json yarn.lock ./ diff --git a/README.md b/README.md index f1226fc44..b2ec6182c 100644 --- a/README.md +++ b/README.md @@ -220,5 +220,3 @@ To configure Keycloak: - NEXTAUTH_SECRET: Any string, can be "secret" locally [keycloak-admin]: http://localhost:8080/admin/master/console/#/ - -Remember to add NEXTAUTH_SECRET variable to your .env file! diff --git a/scripts/docker-build-push.sh b/scripts/docker-build-push.sh index 6ee7b931c..ad66ce7ab 100755 --- a/scripts/docker-build-push.sh +++ b/scripts/docker-build-push.sh @@ -23,6 +23,7 @@ docker build \ --build-arg KEYCLOAK_SECRET=$KEYCLOAK_SECRET \ --build-arg KEYCLOAK_ISSUER=$KEYCLOAK_ISSUER \ --build-arg NEXTAUTH_SECRET=$NEXTAUTH_SECRET \ + --build-arg NEXTAUTH_URL=$NEXTAUTH_URL \ $(echo $DOCKER_IMAGE_TAGS | tr ' ' '\n' | xargs -n 1 -I {} echo "-t {}" ) . # Push all the tags