Skip to content

Commit 7fe0177

Browse files
committed
security updates
1 parent 49133e5 commit 7fe0177

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ 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
25+
1726
# Install the dependencies for the Ziti BrowZer Bootstrapper according to yarn.lock (ci) without
1827
# devDepdendencies (--production), then uninstall npm which isn't needed.
1928
RUN yarn install \

0 commit comments

Comments
 (0)