mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
40ad36f5fd
* buf gen yaml * dep, buildcmd * deps * buf yml * buf work * gen yml * buf * buf mod update * path * chore: fix buf * npm package * build as prodbuild * trigger * temp rm basepath * base href * generate as prelint * proto proto * rm unused gitignore --------- Co-authored-by: Florian Forster <florian@zitadel.com> Co-authored-by: Livio Spring <livio.a@gmail.com>
31 lines
747 B
Docker
31 lines
747 B
Docker
ARG NODE_VERSION=18
|
|
|
|
#######################
|
|
## With this step we prepare all node_modules, this helps caching the build
|
|
## Speed up this step by mounting your local node_modules directory
|
|
## We also copy and generate the source code
|
|
#######################
|
|
FROM node:${NODE_VERSION} as npm-base
|
|
WORKDIR /console
|
|
|
|
# Dependencies
|
|
COPY console/package.json console/package-lock.json ./
|
|
RUN npm ci
|
|
|
|
# Sources
|
|
COPY console .
|
|
COPY proto/ /proto/
|
|
|
|
#######################
|
|
## angular lint workspace and prod build
|
|
#######################
|
|
FROM npm-base as angular-build
|
|
RUN npm run lint
|
|
RUN npm run build
|
|
|
|
#######################
|
|
## Only Copy Assets
|
|
#######################
|
|
FROM scratch as angular-export
|
|
COPY --from=angular-build /console/dist/console .
|