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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

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