Skip to content

Commit a214047

Browse files
committed
security updates
1 parent ec44d23 commit a214047

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bookworm-slim AS build
1+
FROM node:22-slim AS build
22

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

@@ -14,14 +14,9 @@ WORKDIR /home/node/ziti-browzer-bootstrapper
1414
COPY --chown=node:node package.json ./
1515
COPY --chown=node:node yarn.lock ./
1616

17-
ENV YARN_VERSION 4.0.2
18-
19-
RUN set -ex \
20-
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
21-
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
22-
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
23-
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
24-
&& rm yarn-v$YARN_VERSION.tar.gz
17+
# Install yarn 4
18+
RUN corepack enable
19+
RUN corepack prepare yarn@4.0.2 --activate
2520

2621
# Install the dependencies for the Ziti BrowZer Bootstrapper according to yarn.lock (ci) without
2722
# devDepdendencies (--production), then uninstall npm which isn't needed.
@@ -34,7 +29,7 @@ COPY --chown=node:node zha-docker-entrypoint .
3429
COPY --chown=node:node lib ./lib/
3530
COPY --chown=node:node assets ./assets/
3631

37-
FROM node:18-bookworm-slim
32+
FROM node:22-slim
3833

3934
RUN apt-get update && apt-get install curl -y
4035

0 commit comments

Comments
 (0)