Skip to content

Commit

Permalink
Node deprecated script removed
Browse files Browse the repository at this point in the history
  • Loading branch information
apedik committed Sep 15, 2023
1 parent 0bd1111 commit d3debdd
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions docker/php/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,6 @@ RUN apt-get update \
# && printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > /usr/local/etc/php/conf.d/blackfire.ini \
# && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz

# Install latest Node.js
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get -y install nodejs

# INSTALL YARN
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt update && \
apt install -y yarn

# Configure the gd library
RUN docker-php-ext-configure \
gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
Expand Down Expand Up @@ -101,9 +91,6 @@ RUN curl -O https://files.magerun.net/n98-magerun2.phar \
&& chmod +x n98-magerun2.phar \
&& mv n98-magerun2.phar /usr/local/bin/n98-magerun2

# INSTALL GRUNT
RUN npm install -g grunt-cli

#INSTALL PLAYWRIGHT FOR CRITICAL CSS
RUN apt-get update \
&& apt-get install -y \
Expand All @@ -112,6 +99,16 @@ RUN apt-get update \
libgbm1\
libasound2

# Install latest Node.js
RUN apt-get update && sudo apt-get install -y ca-certificates curl gnupg
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
ARG NODE_MAJOR=20
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
RUN apt-get update && sudo apt-get install nodejs -y

# INSTALL GRUNT
RUN npm install -g grunt-cli

#XDEBUG @todo switch xdebug on/off via deploy:mode:set production/developer
#RUN pecl install xdebug-3.2.1 \
# && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
Expand Down

0 comments on commit d3debdd

Please sign in to comment.