Skip to content

Commit 3e8d01d

Browse files
committed
security updates
1 parent d237c4f commit 3e8d01d

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

Dockerfile

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-slim AS build
1+
FROM node:22-slim
22

33
LABEL maintainer="OpenZiti <openziti@netfoundry.io>"
44

@@ -14,37 +14,29 @@ WORKDIR /home/node/ziti-browzer-bootstrapper
1414
COPY --chown=node:node package.json ./
1515
COPY --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
2625
COPY --chown=node:node index.js .
2726
COPY --chown=node:node zha-docker-entrypoint .
2827
COPY --chown=node:node lib ./lib/
2928
COPY --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
3837
USER 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

Comments
 (0)