diff --git a/php/8.0/Dockerfile b/php/8.0/Dockerfile
index 827f6498500292f89095148c2664bee3e923d66d..a4f5f10787caa71d44af6d81001855e1acb80d2f 100644
--- a/php/8.0/Dockerfile
+++ b/php/8.0/Dockerfile
@@ -32,11 +32,15 @@ RUN docker-php-ext-install \
     && pecl install xdebug \
     && php -m
 
+ENV NVM_DIR /usr/local/nvm
+
 SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
     && chmod +x /usr/local/bin/composer \
     && composer --version \
+    && mkdir $NVM_DIR \
     && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
+    && . $NVM_DIR/nvm.sh \
     && nvm --version
 
 ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH