File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ WORKDIR /var/www/html
8
8
9
9
ENV DEBIAN_FRONTEND noninteractive
10
10
ENV TZ=UTC
11
+ ENV NODE_VERSION=16
11
12
12
13
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
13
14
@@ -29,7 +30,7 @@ RUN apt-get update \
29
30
php7.4-msgpack php7.4-igbinary php7.4-ldap \
30
31
php7.4-redis php7.4-xdebug \
31
32
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
32
- && curl -sL https://deb.nodesource.com/setup_16 .x | bash - \
33
+ && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION .x | bash - \
33
34
&& apt-get install -y nodejs \
34
35
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
35
36
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ WORKDIR /var/www/html
8
8
9
9
ENV DEBIAN_FRONTEND noninteractive
10
10
ENV TZ=UTC
11
+ ENV NODE_VERSION=16
11
12
12
13
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
13
14
@@ -29,7 +30,7 @@ RUN apt-get update \
29
30
php8.0-msgpack php8.0-igbinary php8.0-ldap \
30
31
php8.0-redis php8.0-swoole php8.0-xdebug \
31
32
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
32
- && curl -sL https://deb.nodesource.com/setup_16 .x | bash - \
33
+ && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION .x | bash - \
33
34
&& apt-get install -y nodejs \
34
35
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
35
36
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ WORKDIR /var/www/html
8
8
9
9
ENV DEBIAN_FRONTEND noninteractive
10
10
ENV TZ=UTC
11
+ ENV NODE_VERSION=16
11
12
12
13
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
13
14
@@ -30,7 +31,7 @@ RUN apt-get update \
30
31
# php8.1-msgpack php8.1-igbinary php8.1-redis php8.1-swoole \
31
32
# php8.1-memcached php8.1-pcov php8.1-xdebug \
32
33
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
33
- && curl -sL https://deb.nodesource.com/setup_16 .x | bash - \
34
+ && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION .x | bash - \
34
35
&& apt-get install -y nodejs \
35
36
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
36
37
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
You can’t perform that action at this time.
0 commit comments