Fix setting api url when building docker image
This commit is contained in:
parent
234db32e30
commit
40721e7a74
1 changed files with 5 additions and 3 deletions
|
@ -5,9 +5,11 @@ WORKDIR /build
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
RUN yarn install --frozen-lockfile
|
# Override config
|
||||||
RUN yarn run build
|
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
|
# Stage 2: copy
|
||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
Loading…
Reference in a new issue