Files
zeekay 89e3ea5fb4 rename: ziti → zt across all paths
- Repo names: ziti-* → zt-*
- Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt
- Docker images: hanzozt/ziti-* → hanzozt/zt-*
- C/Java/JS symbols: ziti_* → zt_*
- File and directory names updated
2026-02-18 18:34:13 -08:00

29 lines
709 B
Docker

# this Dockerfile builds hanzozt/zt-console-assets
ARG NODE_VERSION=20
FROM node:${NODE_VERSION}-bookworm-slim AS builder
ARG BASE_HREF=/zac/
WORKDIR /usr/src/app
RUN npm install -g @angular/[email protected]
COPY . .
RUN --mount=type=cache,target=/root/.npm \
--mount=type=cache,target=/usr/src/app/.angular/cache \
npm install --omit=optional && \
ng build zt-console --base-href ${BASE_HREF} --configuration "production"
ARG NODE_VERSION=${NODE_VERSION}
FROM node:${NODE_VERSION}-bookworm-slim
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/dist/app-zt-console ./dist/app-zt-console
CMD ["echo", "deployment guide https://hanzozt.dev/docs/guides/deployments/docker/console"]