mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
2f3a482ade
* not working * test ci * correct path * test * test * test * remove k8s & test * test * test image * typo * test * fix * test * fix * test * fix * fix windows * fix * fix * fix codecov * fix with arch * test * test * test * test * trial * trial * trial * trial * trial * trial * trial * try * try * first improvement * trial * improve * improve * improve * use bash * trial * random test * wip * test with goreleaser and semrel * fix typo * trial * add buildx * define default * force buildkit * use buildx * debug GH docker * use images * debug docker * work around image name issues * trial * test * test with prebuilt image * fix * use load * test * use only docker * trial * test * use load * test * test with docker driver * trial * trial * trial * use arm * upload artifacts * try to cache grpc base * try to use a cache * fall back * test * fix * improve * upload artifacts * fix * name things * add tag if poc * args for protos * remove v2 build Co-authored-by: Livio Amstutz <livio.a@gmail.com>
38 lines
1023 B
Docker
38 lines
1023 B
Docker
ARG NODE_VERSION=14
|
|
|
|
#######################
|
|
## With this step we prepare all node_modules, this helps caching the build
|
|
## Speed up this step by mounting your local node_modules directory
|
|
#######################
|
|
FROM node:${NODE_VERSION} as npm-base
|
|
WORKDIR /console
|
|
|
|
COPY console/package.json console/package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY console .
|
|
COPY --from=zitadel-base:local /proto /proto
|
|
COPY --from=zitadel-base:local /usr/local/bin /usr/local/bin/.
|
|
COPY build/console build/console/
|
|
RUN build/console/generate-grpc.sh
|
|
|
|
#######################
|
|
## copy for local dev
|
|
#######################
|
|
FROM scratch as npm-copy
|
|
COPY --from=npm-base /console/src/app/proto/generated .
|
|
|
|
#######################
|
|
## angular lint workspace and prod build
|
|
#######################
|
|
FROM npm-base as angular-build
|
|
RUN npm run lint
|
|
RUN npm run prodbuild
|
|
RUN ls -la /console/dist/console
|
|
|
|
#######################
|
|
## Only Copy Assets
|
|
#######################
|
|
FROM scratch as angular-export
|
|
COPY --from=angular-build /console/dist/console .
|