From 27a887b1c4c0fef14195886a41dc9e15a9e8c105 Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Thu, 16 May 2024 19:33:52 +0200 Subject: [PATCH] build: pass api base url as build-arg to docker build context --- .env.local.example | 5 +++++ Dockerfile | 1 + 2 files changed, 6 insertions(+) diff --git a/.env.local.example b/.env.local.example index bb92505..ca80980 100644 --- a/.env.local.example +++ b/.env.local.example @@ -7,6 +7,11 @@ NUXT_PUBLIC_REDMINE_ID="20274" # web crawlers NUXT_PUBLIC_BOTS="disabled" +# ------------------------------------------------------------------------------------------------- +# api +# ------------------------------------------------------------------------------------------------- +NUXT_PUBLIC_API_BASE_URL="https://frischmuth-dev.acdh-dev.oeaw.ac.at" + # ------------------------------------------------------------------------------------------------- # analytics # ------------------------------------------------------------------------------------------------- diff --git a/Dockerfile b/Dockerfile index d59166f..52ba36e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN pnpm fetch COPY --chown=node:node ./ ./ RUN sed -i "s/use-node-version/# use-node-version/" .npmrc +ARG NUXT_PUBLIC_API_BASE_URL ARG NUXT_PUBLIC_APP_BASE_URL ARG NUXT_PUBLIC_BOTS ARG NUXT_PUBLIC_MATOMO_BASE_URL