Skip to content

Commit c708c07

Browse files
committed
upgrade nodejs 14 to 14.17.6
1 parent 729b35a commit c708c07

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

buildpack-14/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.17.2-buster
1+
FROM node:14.17.6-buster
22

33
ENV DEBIAN_VERSION_NAME buster
44

@@ -16,8 +16,8 @@ RUN set -xe && \
1616
apt-get install -y --no-install-recommends postgresql-client-11 && \
1717
if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
1818
rm -rf /var/lib/apt/lists/* && \
19-
# upgrade npm to 6.10
20-
npm i -g npm@7.8.0 && npm cache clean --force && \
19+
# upgrade npm to 7.22.0
20+
npm i -g npm@7.22.0 && npm cache clean --force && \
2121
# Add user and groupd
2222
groupadd --gid $GID $USER_NAME && \
2323
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \

runtime-14/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.17.2-buster
1+
FROM node:14.17.6-buster
22

33
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
44
ENV PORTCHECKER_VERSION=v1.1.0
@@ -32,6 +32,8 @@ RUN set -xe && \
3232
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \
3333
mkdir /home/$USER_NAME/.npm && \
3434
echo "prefix=/home/$USER_NAME/.npm/" > /home/$USER_NAME/.npmrc && \
35+
# upgrade npm to 7.22.0
36+
npm install -g [email protected] && npm cache clean --force && \
3537
# setup app dir
3638
mkdir -p /home/$USER_NAME/app && \
3739
# adjust permission

0 commit comments

Comments
 (0)