Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/check_blueprint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check generated files

on:
pull_request:
push:

jobs:
check_blueprint:
runs-on: ubuntu-latest
name: Check that the Dockerfiles are generated from the blueprint
steps:
- uses: actions/checkout@v7
- name: Install orbit
run: |
ORBIT_VERSION=3.3.0
cd "$(mktemp -d)"
curl -fsSLO --retry 5 --retry-delay 2 "https://github.com/gulien/orbit/releases/download/v${ORBIT_VERSION}/orbit_Linux_x86_64.tar.gz"
curl -fsSLO --retry 5 --retry-delay 2 "https://github.com/gulien/orbit/releases/download/v${ORBIT_VERSION}/Orbit_${ORBIT_VERSION}_checksums.txt"
sha256sum -c --ignore-missing "Orbit_${ORBIT_VERSION}_checksums.txt"
tar -xzf orbit_Linux_x86_64.tar.gz orbit
sudo install orbit /usr/local/bin/orbit
- name: Regenerate the Dockerfiles
run: make blueprint
- name: Check that nothing changed
run: |
if ! git diff --quiet; then
echo "::error::The Dockerfiles are not up to date with utils/Dockerfile.blueprint, run 'make blueprint'"
git diff
exit 1
fi
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v1
uses: docker/setup-buildx-action@v4
- uses: actions/checkout@v7
- name: Login to DockerHub
# Merge ~ push.
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
uses: docker/login-action@v1
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
24 changes: 15 additions & 9 deletions Dockerfile.20-apache-trixie
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -52,8 +58,8 @@ RUN apt-get update \
apache2 \
&& rm -rf /var/lib/apt/lists/*

ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=$APACHE_CONFDIR/envvars

RUN set -ex \
\
Expand Down Expand Up @@ -85,15 +91,15 @@ RUN set -ex \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"

ENV APACHE_DOCUMENT_ROOT /
ENV APACHE_DOCUMENT_ROOT=/

RUN { \
echo 'DirectoryIndex disabled'; \
echo 'DirectoryIndex index.html'; \
echo; \
echo '<Directory /var/www/>'; \
echo '\tOptions -Indexes'; \
echo '\tAllowOverride All'; \
printf '\tOptions -Indexes\n'; \
printf '\tAllowOverride All\n'; \
echo '</Directory>'; \
} | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
&& a2enconf nodejs
Expand Down Expand Up @@ -121,7 +127,7 @@ RUN a2enmod rewrite
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
24 changes: 15 additions & 9 deletions Dockerfile.20-apache-trixie-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -52,8 +58,8 @@ RUN apt-get update \
apache2 \
&& rm -rf /var/lib/apt/lists/*

ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=$APACHE_CONFDIR/envvars

RUN set -ex \
\
Expand Down Expand Up @@ -85,15 +91,15 @@ RUN set -ex \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"

ENV APACHE_DOCUMENT_ROOT /
ENV APACHE_DOCUMENT_ROOT=/

RUN { \
echo 'DirectoryIndex disabled'; \
echo 'DirectoryIndex index.html'; \
echo; \
echo '<Directory /var/www/>'; \
echo '\tOptions -Indexes'; \
echo '\tAllowOverride All'; \
printf '\tOptions -Indexes\n'; \
printf '\tAllowOverride All\n'; \
echo '</Directory>'; \
} | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
&& a2enconf nodejs
Expand Down Expand Up @@ -121,7 +127,7 @@ RUN a2enmod rewrite
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
14 changes: 10 additions & 4 deletions Dockerfile.20-trixie
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -51,7 +57,7 @@ RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
14 changes: 10 additions & 4 deletions Dockerfile.20-trixie-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -51,7 +57,7 @@ RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
24 changes: 15 additions & 9 deletions Dockerfile.22-apache-trixie
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -52,8 +58,8 @@ RUN apt-get update \
apache2 \
&& rm -rf /var/lib/apt/lists/*

ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=$APACHE_CONFDIR/envvars

RUN set -ex \
\
Expand Down Expand Up @@ -85,15 +91,15 @@ RUN set -ex \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"

ENV APACHE_DOCUMENT_ROOT /
ENV APACHE_DOCUMENT_ROOT=/

RUN { \
echo 'DirectoryIndex disabled'; \
echo 'DirectoryIndex index.html'; \
echo; \
echo '<Directory /var/www/>'; \
echo '\tOptions -Indexes'; \
echo '\tAllowOverride All'; \
printf '\tOptions -Indexes\n'; \
printf '\tAllowOverride All\n'; \
echo '</Directory>'; \
} | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
&& a2enconf nodejs
Expand Down Expand Up @@ -121,7 +127,7 @@ RUN a2enmod rewrite
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
24 changes: 15 additions & 9 deletions Dockerfile.22-apache-trixie-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM debian:trixie-slim

LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# |--------------------------------------------------------------------------
# | Required libraries
Expand All @@ -20,9 +21,14 @@ RUN apt-get update &&\
# | Supercronic is a drop-in replacement for cron (for containers).
# |

RUN SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-$( dpkg --print-architecture ) \
&& SUPERCRONIC=supercronic-linux-$( dpkg --print-architecture ) \
&& curl -fsSLO "$SUPERCRONIC_URL" \
RUN ARCH="$( dpkg --print-architecture )" \
&& SUPERCRONIC="supercronic-linux-${ARCH}" \
&& SUPERCRONIC_URL="https://github.com/aptible/supercronic/releases/download/v0.2.49/${SUPERCRONIC}" \
&& if [ "$ARCH" = "arm64" ]; then SUPERCRONIC_SHA1SUM=0b6c5bb743e0b0dafed1132198c81807927ac413; \
elif [ "$ARCH" = "amd64" ]; then SUPERCRONIC_SHA1SUM=e63c11a9726b775a6a11801e81af4f3fb926aa68; \
else echo "Architecture '${ARCH}' is not supported"; exit 1; fi \
&& curl -fsSLO --retry 5 --retry-delay 2 "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
Expand Down Expand Up @@ -52,8 +58,8 @@ RUN apt-get update \
apache2 \
&& rm -rf /var/lib/apt/lists/*

ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=$APACHE_CONFDIR/envvars

RUN set -ex \
\
Expand Down Expand Up @@ -85,15 +91,15 @@ RUN set -ex \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"

ENV APACHE_DOCUMENT_ROOT /
ENV APACHE_DOCUMENT_ROOT=/

RUN { \
echo 'DirectoryIndex disabled'; \
echo 'DirectoryIndex index.html'; \
echo; \
echo '<Directory /var/www/>'; \
echo '\tOptions -Indexes'; \
echo '\tAllowOverride All'; \
printf '\tOptions -Indexes\n'; \
printf '\tAllowOverride All\n'; \
echo '</Directory>'; \
} | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
&& a2enconf nodejs
Expand Down Expand Up @@ -121,7 +127,7 @@ RUN a2enmod rewrite
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
curl -fsSL --retry 5 --retry-delay 2 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
Expand Down
Loading
Loading