From bf87b3fb010813e97784e898abbaab818b05fc1c Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Wed, 6 Sep 2023 10:40:08 +0200 Subject: [PATCH] Runtime config in Docker (#349) Co-authored-by: Matthias Mohr --- Dockerfile | 18 +++++--- docker/docker-entrypoint.sh | 91 +++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 6 deletions(-) create mode 100755 docker/docker-entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 4694d6f8e..ce6973ac0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,27 @@ FROM node:lts-alpine3.18 AS build-step - -ARG catalogURL +ARG DYNAMIC_CONFIG=true WORKDIR /app COPY package*.json ./ RUN npm install COPY . . -RUN npm run build -- --catalogUrl=$catalogURL +RUN \[ "${DYNAMIC_CONFIG}" == "true" \] && sed -i 's//