Skip to content

Commit

Permalink
Curl Test GPG
Browse files Browse the repository at this point in the history
  • Loading branch information
BippyMiester committed Jul 31, 2024
1 parent 2ab1f1c commit b74cfab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion games/carbon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --no-install-recommends gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

RUN echo "Fetching NodeSource GPG key..." && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key -o /tmp/nodesource.gpg.key && \
cat /tmp/nodesource.gpg.key && \
gpg --no-tty --dearmor -o /etc/apt/keyrings/nodesource.gpg /tmp/nodesource.gpg.key && \
rm /tmp/nodesource.gpg.key

RUN 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
RUN apt-get update
RUN apt-get install -y --no-install-recommends nodejs
Expand Down

0 comments on commit b74cfab

Please sign in to comment.