diff --git a/Dockerfile b/Dockerfile index 6481a62..ff28f9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,9 @@ RUN apt install -yqq zip unzip # install PHP 8.3 RUN apt install -yqq php8.3-cli php8.3-common php8.3-curl php8.3-imagick php8.3-intl php8.3-mbstring php8.3-opcache php8.3-readline php8.3-xml php8.3-zip -# install nodeJS -RUN apt install -yqq nodejs +# install nvm & nodeJS +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash +RUN . /root/.bashrc && nvm install 22.14.0 && nvm use 22.14.0 # install yarn RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null diff --git a/README.md b/README.md index 5caa1b0..61be423 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ Final docker image is based on Debian stable slim, with PHP Sury apt repo, and t - php8.3-xml - php8.3-zip - composer - - nodejs 18 + - nvm + - nodejs 22.14.0 - yarn - zip - unzip