Fix setting api url when building docker image

This commit is contained in:
kolaente 2020-05-01 12:19:52 +02:00
parent 234db32e30
commit 40721e7a74
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 3 deletions

View File

@ -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