Use newer nodejs version in docker builds

Our dependencies needs newer nodejs
This commit is contained in:
Jan Böhmer 2022-07-25 22:23:09 +02:00
parent e041012fa1
commit 2da20535b0

View file

@ -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