@@ -47,16 +47,6 @@ RUN apt-get update \
47
47
# && printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > /usr/local/etc/php/conf.d/blackfire.ini \
48
48
# && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
49
49
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
-
60
50
# Configure the gd library
61
51
RUN docker-php-ext-configure \
62
52
gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
@@ -101,9 +91,6 @@ RUN curl -O https://files.magerun.net/n98-magerun2.phar \
101
91
&& chmod +x n98-magerun2.phar \
102
92
&& mv n98-magerun2.phar /usr/local/bin/n98-magerun2
103
93
104
- # INSTALL GRUNT
105
- RUN npm install -g grunt-cli
106
-
107
94
# INSTALL PLAYWRIGHT FOR CRITICAL CSS
108
95
RUN apt-get update \
109
96
&& apt-get install -y \
@@ -112,6 +99,22 @@ RUN apt-get update \
112
99
libgbm1\
113
100
libasound2
114
101
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
+
115
118
# XDEBUG @todo switch xdebug on/off via deploy:mode:set production/developer
116
119
# RUN pecl install xdebug-3.2.1 \
117
120
# && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
0 commit comments