mirror of
https://github.com/hanzozt/console.git
synced 2026-10-30 18:15:39 +00:00
- 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
29 lines
709 B
Docker
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"]
|