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
38 lines
794 B
Docker
38 lines
794 B
Docker
FROM node:20-bookworm-slim as zac-builder
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN npm install -g @angular/[email protected]
|
|
|
|
COPY package*.json ./
|
|
COPY version.js ./
|
|
COPY . .
|
|
RUN npm install --omit=optional
|
|
RUN ng build zt-console-node
|
|
|
|
|
|
FROM node:20-bookworm-slim
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY --from=zac-builder /usr/src/app/dist ./dist
|
|
COPY --from=zac-builder /usr/src/app/node_modules ./node_modules
|
|
COPY ./package*.json ./
|
|
COPY ./server.js ./
|
|
COPY ./run-zac.sh ./
|
|
|
|
# The in-container path for the key file to use for TLS.
|
|
ENV ZAC_SERVER_KEY=
|
|
# The in-container path for the cert bundle file to use for TLS.
|
|
ENV ZAC_SERVER_CERT_CHAIN=
|
|
# the HTTP port ZAC uses
|
|
ENV PORT=
|
|
# the HTTPS port ZAC uses
|
|
ENV PORTTLS=
|
|
|
|
# Expose ports
|
|
EXPOSE 1408
|
|
EXPOSE 8443
|
|
|
|
ENTRYPOINT ["/usr/src/app/run-zac.sh"]
|
|
CMD ["node-api"]
|