You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2025/08/11 04:49:22 UTC

(beam) 01/01: Use corepack for yarn installing

This is an automated email from the ASF dual-hosted git repository.

vterentev pushed a commit to branch fix-website
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 77d4447e74d6008624dcfce5dc57fa3f4abc620b
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Mon Aug 11 08:49:07 2025 +0400

    Use corepack for yarn installing
---
 website/Dockerfile | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/website/Dockerfile b/website/Dockerfile
index e40724ea181..c66685abfb7 100644
--- a/website/Dockerfile
+++ b/website/Dockerfile
@@ -58,13 +58,7 @@ RUN npm update -g npm
 RUN npm install postcss postcss-cli autoprefixer 
 
 # Install yarn
-RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
-    && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
-    && apt-get update \
-    && apt-get install -y --no-install-recommends yarn \
-    && apt-get autoremove -yqq --purge \
-    && apt-get clean \
-    && rm -rf /var/lib/apt/lists/*
+RUN corepack enable && corepack prepare yarn@stable --activate
 
 # Install hugo extended version v0.117.0
 RUN HUGOHOME="$(mktemp -d)" \