Skip to content

Commit

Permalink
Bump Dockerfile Node.js version 16 to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
gomasy committed Dec 29, 2024
1 parent 8535e24 commit 59e1c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM php:7.4-apache
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends gnupg2; \
curl -sSL https://deb.nodesource.com/setup_16.x | sh -; \
curl -sSL https://deb.nodesource.com/setup_22.x | sh -; \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -; \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list; \
apt-get update; \
Expand Down Expand Up @@ -92,7 +92,7 @@ RUN set -ex; \
curl -s https://getcomposer.org/installer | php; \
php composer.phar install --prefer-dist --no-dev; \
yarn install --pure-lockfile; \
yarn build; \
NODE_OPTIONS="--openssl-legacy-provider" yarn build; \
rm -rf $HOME/.composer composer.phar node_modules; \
ln -s public html; \
chown -R www-data. .; \
Expand Down

0 comments on commit 59e1c44

Please sign in to comment.