1- FROM node:22-slim AS build
1+ FROM node:22-slim
22
33LABEL maintainer="OpenZiti <openziti@netfoundry.io>"
44
@@ -14,37 +14,29 @@ WORKDIR /home/node/ziti-browzer-bootstrapper
1414COPY --chown=node:node package.json ./
1515COPY --chown=node:node yarn.lock ./
1616
17- # # Install yarn 4
18- # RUN corepack enable
19- # RUN corepack prepare yarn@4.0.2 --activate
17+ # Install yarn 4
18+ RUN corepack enable
19+ RUN corepack prepare yarn@4.0.2 --activate
2020
21- # Install the dependencies for the Ziti BrowZer Bootstrapper according to yarn.lock (ci) without
22- # devDepdendencies (--production), then uninstall npm which isn't needed.
23- # RUN yarn install
21+ # Install the dependencies for the Ziti BrowZer Bootstrapper
22+ RUN yarn install
2423
2524# Bring in the source of the Ziti BrowZer Bootstrapper to the working folder
2625COPY --chown=node:node index.js .
2726COPY --chown=node:node zha-docker-entrypoint .
2827COPY --chown=node:node lib ./lib/
2928COPY --chown=node:node assets ./assets/
3029
31- FROM node:22-slim
30+ # FROM node:22-slim
3231
33- RUN apt-get update && apt-get install curl -y
32+ # RUN apt-get update && apt-get install curl -y
3433
35- COPY --from=build /home/node/ziti-browzer-bootstrapper /home/node/ziti-browzer-bootstrapper
34+ # COPY --from=build /home/node/ziti-browzer-bootstrapper /home/node/ziti-browzer-bootstrapper
3635
37- RUN chown -R node:node /home/node/ziti-browzer-bootstrapper
36+ # RUN chown -R node:node /home/node/ziti-browzer-bootstrapper
3837USER node
3938
40- WORKDIR /home/node/ziti-browzer-bootstrapper
41-
42- # Install yarn 4
43- RUN corepack enable
44- RUN corepack prepare yarn@4.0.2 --activate
45-
46- # Install deps
47- RUN yarn install
39+ # WORKDIR /home/node/ziti-browzer-bootstrapper
4840
4941# Expose the Ziti BrowZer Bootstrapper for traffic to be proxied (8000) and the
5042# REST API where it can be configured (8001)
0 commit comments