From 5c19dc8a8d40b60d0bd5a5214ce2b2c4bcf53d4e Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Fri, 17 Nov 2023 14:50:10 +0100 Subject: [PATCH] fix: bastion bot image Co-Authored-By: Quinten <67589015+quintenqvd0@users.noreply.github.com> --- bot/bastion/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bot/bastion/Dockerfile b/bot/bastion/Dockerfile index f360d57..84fb35e 100644 --- a/bot/bastion/Dockerfile +++ b/bot/bastion/Dockerfile @@ -3,9 +3,11 @@ FROM --platform=$TARGETOS/$TARGETARCH mongo:6-focal LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" ## install nodejs 18 -RUN apt update && apt install --no-install-recommends -y curl \ - && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ - && apt install -y nodejs \ +RUN apt update && apt install --no-install-recommends -y curl \ + && mkdir -p /etc/apt/keyrings \ + && curl -fsSL 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_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ + && apt update && apt install -y nodejs \ && npm install -g npm@latest \ ## install bastion reqs && apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata tini \ @@ -21,4 +23,4 @@ STOPSIGNAL SIGINT COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +CMD ["/entrypoint.sh"]