Skip to content

Commit

Permalink
chore(release): Fix npm installation 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
gremo committed Jan 23, 2024
1 parent 3007a11 commit da558e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ RUN \
if [ -n "$EXTENSIONS" ]; then \
install-php-extensions $EXTENSIONS; \
fi; \
# Install Node.js, update npm and install Yarm
mkdir -p /etc/apt/keyrings; \
# Install Node.js, update npm and install Yarm
echo "Package: nodejs" >> /etc/apt/preferences.d/nodejs; \
echo "Pin: origin deb.nodesource.com" >> /etc/apt/preferences.d/nodejs; \
echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/nodejs; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get update; \
Expand Down

0 comments on commit da558e2

Please sign in to comment.