From 40721e7a74e353c9250dfe2cc5b75c026c91d020 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 1 May 2020 12:19:52 +0200 Subject: [PATCH] Fix setting api url when building docker image --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b2d0987af..5a7af13ffb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,11 @@ WORKDIR /build COPY . ./ -RUN yarn install --frozen-lockfile -RUN yarn run build - +# Override config +RUN echo '{"VIKUNJA_API_BASE_URL": "/api/v1/"}' > /build/public/config.json && \ + # Build the frontend + yarn install --frozen-lockfile && \ + yarn run build # Stage 2: copy FROM nginx