This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 7f91baadcf2 Upgrade website node to LTS (#30213)
7f91baadcf2 is described below
commit 7f91baadcf2b945c13f8f00bdbfb8e444e449c33
Author: Danny McCormick <[email protected]>
AuthorDate: Mon Feb 5 13:30:30 2024 -0500
Upgrade website node to LTS (#30213)
* Upgrade website node to LTS
* Remove npm installation
* Latest npm
---
website/Dockerfile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/website/Dockerfile b/website/Dockerfile
index 90d4202728d..e40724ea181 100644
--- a/website/Dockerfile
+++ b/website/Dockerfile
@@ -44,15 +44,16 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
-# Install node environment
-RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
+# Install node LTS environment
+RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
- npm \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
+
+RUN npm update -g npm
RUN npm install postcss postcss-cli autoprefixer