From b5c4bc9497d4a08c4d67064b96d05b41ef8d861c Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Thu, 14 Dec 2023 21:28:42 +0200 Subject: [PATCH] Update Build script for new nodejs installer --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c91c21..2f06ca4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,15 @@ -ARG GO_VERSION="1.20" +ARG GO_VERSION="1.21" FROM golang:${GO_VERSION}-bullseye -ARG HUGO_VERSION="0.115.4" +ARG HUGO_VERSION="0.121.1" ARG NODE_VERSION="18" RUN apt update -y -RUN apt install tar gzip build-essential -y -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs +RUN apt install tar gzip build-essential ca-certificates curl gnupg -y +RUN mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +RUN apt update -y && apt-get install -y nodejs RUN npm i -g yarn pnpm RUN mkdir /tmp/temph RUN mkdir /home/app @@ -18,4 +21,4 @@ WORKDIR /home/app # Cleanup RUN rm -rfv /tmp/temph -ENTRYPOINT [ "/bin/bash" ] \ No newline at end of file +ENTRYPOINT [ "/bin/bash" ]