Skip to content
Snippets Groups Projects
Unverified Commit 8c62e8a0 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Docker build: just one build stage (#18196)

parent 3f07a318
No related branches found
No related tags found
No related merge requests found
###################
# STAGE 1.1: builder frontend
###################
FROM metabase/ci:circleci-java-11-clj-1.10.3.929-07-27-2021-node-browsers as frontend
ARG MB_EDITION=oss
WORKDIR /home/circleci
COPY --chown=circleci . .
RUN WEBPACK_BUNDLE=production MB_EDITION=$MB_EDITION yarn --frozen-lockfile && \
yarn build && yarn build-static-viz && bin/i18n/build-translation-resources
###################
# STAGE 1.4: main builder
# STAGE 1: builder
###################
FROM metabase/ci:circleci-java-11-clj-1.10.3.929-07-27-2021-node-browsers as builder
......@@ -22,12 +8,8 @@ ARG MB_EDITION=oss
WORKDIR /home/circleci
# try to reuse caching as much as possible
COPY --from=frontend /home/circleci/.m2/repository/. /home/circleci/.m2/repository/.
COPY --from=frontend /home/circleci/. .
# build the app
RUN INTERACTIVE=false MB_EDITION=$MB_EDITION bin/build version drivers uberjar
COPY --chown=circleci . .
RUN INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build
# ###################
# # STAGE 2: runner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment