File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- FROM node:18-bookworm -slim AS build
1+ FROM node:22 -slim AS build
22
33LABEL maintainer="OpenZiti <openziti@netfoundry.io>"
44
@@ -14,14 +14,9 @@ WORKDIR /home/node/ziti-browzer-bootstrapper
1414COPY --chown=node:node package.json ./
1515COPY --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 .
3429COPY --chown=node:node lib ./lib/
3530COPY --chown=node:node assets ./assets/
3631
37- FROM node:18-bookworm -slim
32+ FROM node:22 -slim
3833
3934RUN apt-get update && apt-get install curl -y
4035
You can’t perform that action at this time.
0 commit comments