Skip to content

Commit 7f91baa

Browse files
authored
Upgrade website node to LTS (#30213)
* Upgrade website node to LTS * Remove npm installation * Latest npm
1 parent a47b1fa commit 7f91baa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

website/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ RUN apt-get update \
4444
&& apt-get clean \
4545
&& rm -rf /var/lib/apt/lists/*
4646

47-
# Install node environment
48-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
47+
# Install node LTS environment
48+
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
4949
&& apt-get update \
5050
&& apt-get install -y --no-install-recommends \
5151
nodejs \
52-
npm \
5352
&& apt-get autoremove -yqq --purge \
5453
&& apt-get clean \
5554
&& rm -rf /var/lib/apt/lists/*
55+
56+
RUN npm update -g npm
5657

5758
RUN npm install postcss postcss-cli autoprefixer
5859

0 commit comments

Comments
 (0)