forked from openziti/ziti-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 834 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM node:20-bookworm-slim as zac-builder
WORKDIR /usr/src/app
RUN npm install -g @angular/[email protected]
COPY package*.json ./
RUN npm install --omit=optional
COPY . .
RUN ng build ziti-console-lib
RUN ng build ziti-console
RUN ng build ziti-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"]