aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2024-06-18 13:21:26 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-06-18 13:21:26 +0200
commitab3352dec1bc28b5b828b35afb5f2d974d6c3fb1 (patch)
treec0781f640cb8b5b63808ee5bd1ef0fb29c429b2c /docker
parentf32966b5a9d88f780d440c1e731ba5649a0df904 (diff)
fix npm in dockerfile, re #3935, re #4285
Diffstat (limited to 'docker')
-rw-r--r--docker/tests/php81/Dockerfile5
-rw-r--r--docker/tests/php82/Dockerfile5
-rw-r--r--docker/tests/php83/Dockerfile5
3 files changed, 12 insertions, 3 deletions
diff --git a/docker/tests/php81/Dockerfile b/docker/tests/php81/Dockerfile
index ceb1d2d..bcd805a 100644
--- a/docker/tests/php81/Dockerfile
+++ b/docker/tests/php81/Dockerfile
@@ -16,7 +16,10 @@ RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli pdo pdo_mysql zip
# Install node/npm
-COPY --from=node:18-slim /usr/local/bin /usr/local/bin
+RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
+RUN apt update && apt install -y --no-install-recommends nodejs \
+ curl apt-transport-https ca-certificates gnupg unzip git \
+ && rm -rf /var/lib/apt/lists/*
# Install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
diff --git a/docker/tests/php82/Dockerfile b/docker/tests/php82/Dockerfile
index eee9aad..7f18e4e 100644
--- a/docker/tests/php82/Dockerfile
+++ b/docker/tests/php82/Dockerfile
@@ -16,7 +16,10 @@ RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli pdo pdo_mysql zip
# Install node/npm
-COPY --from=node:18-slim /usr/local/bin /usr/local/bin
+RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
+RUN apt update && apt install -y --no-install-recommends nodejs \
+ curl apt-transport-https ca-certificates gnupg unzip git \
+ && rm -rf /var/lib/apt/lists/*
# Install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
diff --git a/docker/tests/php83/Dockerfile b/docker/tests/php83/Dockerfile
index b93795a..54bb541 100644
--- a/docker/tests/php83/Dockerfile
+++ b/docker/tests/php83/Dockerfile
@@ -16,7 +16,10 @@ RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli pdo_mysql zip
# Install node/npm
-COPY --from=node:18-slim /usr/local/bin /usr/local/bin
+RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
+RUN apt update && apt install -y --no-install-recommends nodejs \
+ curl apt-transport-https ca-certificates gnupg unzip git \
+ && rm -rf /var/lib/apt/lists/*
# Install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer