mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
14 lines
352 B
Docker
14 lines
352 B
Docker
|
## Angular lint workspace and production build
|
||
|
FROM node:18 as builder
|
||
|
WORKDIR /docs
|
||
|
COPY docs/package.json docs/yarn.lock ./
|
||
|
RUN yarn install --frozen-lockfile
|
||
|
COPY docs .
|
||
|
COPY proto /proto
|
||
|
RUN yarn build
|
||
|
|
||
|
## Final image for serving
|
||
|
FROM nginx as final
|
||
|
COPY docs/nginx.conf /etc/nginx/nginx.conf
|
||
|
COPY --from=builder /docs/build /usr/share/nginx/html
|