@@ -47,16 +47,6 @@ RUN apt-get update \
4747# && printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > /usr/local/etc/php/conf.d/blackfire.ini \
4848# && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
4949
50- # Install latest Node.js
51- RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
52- RUN apt-get -y install nodejs
53-
54- # INSTALL YARN
55- RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
56- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
57- apt update && \
58- apt install -y yarn
59-
6050# Configure the gd library
6151RUN docker-php-ext-configure \
6252 gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
@@ -101,9 +91,6 @@ RUN curl -O https://files.magerun.net/n98-magerun2.phar \
10191 && chmod +x n98-magerun2.phar \
10292 && mv n98-magerun2.phar /usr/local/bin/n98-magerun2
10393
104- # INSTALL GRUNT
105- RUN npm install -g grunt-cli
106-
10794# INSTALL PLAYWRIGHT FOR CRITICAL CSS
10895RUN apt-get update \
10996 && apt-get install -y \
@@ -112,6 +99,22 @@ RUN apt-get update \
11299 libgbm1\
113100 libasound2
114101
102+ # Install latest Node.js
103+ RUN apt-get update && sudo apt-get install -y ca-certificates curl gnupg
104+ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
105+ ARG NODE_MAJOR=20
106+ RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
107+ RUN apt-get update && sudo apt-get install nodejs -y
108+
109+ # INSTALL YARN
110+ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
111+ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
112+ apt update && \
113+ apt install -y yarn
114+
115+ # INSTALL GRUNT
116+ RUN npm install -g grunt-cli
117+
115118# XDEBUG @todo switch xdebug on/off via deploy:mode:set production/developer
116119# RUN pecl install xdebug-3.2.1 \
117120# && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
0 commit comments