diff --git a/Dockerfile b/Dockerfile index 2f6d1fc2..991b36de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,10 +26,10 @@ RUN docker-php-ext-enable opcache; \ echo 'realpath_cache_ttl=600'; \ } > /usr/local/etc/php/conf.d/symfony-recommended.ini -# Install yarn +# Install node and yarn RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -RUN apt-get update && apt-get install -y yarn && apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/* +RUN curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - && apt-get update && apt-get install -y nodejs yarn && apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/* # Install composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer