Skip to content

Commit c4b8d52

Browse files
authored
Dev image bumped Node to v20 (alexjustesen#795)
1 parent e6ed0c7 commit c4b8d52

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

docker/8.2/Dockerfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ubuntu:22.04
33
LABEL maintainer="Alex Justesen"
44

55
ARG WWWGROUP
6-
ARG NODE_VERSION=18
6+
ARG NODE_VERSION=20
77
ARG POSTGRES_VERSION=15
88

99
WORKDIR /var/www/html
@@ -14,6 +14,7 @@ ENV TZ=UTC
1414
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1515

1616
RUN apt-get update \
17+
&& mkdir -p /etc/apt/keyrings \
1718
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils librsvg2-bin fswatch cron \
1819
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /etc/apt/keyrings/ppa_ondrej_php.gpg > /dev/null \
1920
&& echo "deb [signed-by=/etc/apt/keyrings/ppa_ondrej_php.gpg] https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
@@ -25,20 +26,26 @@ RUN apt-get update \
2526
php8.2-xml php8.2-zip php8.2-bcmath php8.2-soap \
2627
php8.2-intl php8.2-readline \
2728
php8.2-msgpack php8.2-igbinary php8.2-redis \
28-
php8.2-memcached php8.2-pcov php8.2-xdebug \
29-
&& curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
30-
&& curl -sLS https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
29+
php8.2-memcached php8.2-pcov php8.2-xdebug
30+
31+
RUN curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
32+
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
33+
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
34+
&& apt-get update \
3135
&& apt-get install -y nodejs \
32-
&& npm install -g npm \
33-
&& curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/keyrings/pgdg.gpg >/dev/null \
36+
&& npm install -g npm
37+
38+
RUN curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/keyrings/pgdg.gpg >/dev/null \
3439
&& echo "deb [signed-by=/etc/apt/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
3540
&& apt-get update \
3641
&& apt-get install -y mysql-client \
37-
&& apt-get install -y postgresql-client-$POSTGRES_VERSION \
38-
&& curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
42+
&& apt-get install -y postgresql-client-$POSTGRES_VERSION
43+
44+
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
3945
&& apt-get update \
40-
&& apt-get install -y speedtest \
41-
&& apt-get -y autoremove \
46+
&& apt-get install -y speedtest
47+
48+
RUN apt-get -y autoremove \
4249
&& apt-get clean \
4350
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
4451
&& echo "MAILTO=\"\"\n* * * * * sail /usr/bin/php /var/www/html/artisan schedule:run" > /etc/cron.d/laravel

0 commit comments

Comments
 (0)