From eb62388f7b56c3a842234b76354535f9c68b4acc Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Thu, 2 Nov 2023 10:33:03 +1300 Subject: [PATCH] fix(cli): Fix the installiation of node js in the cli container. BM-916 (#2985) #### Motivation The old node js installation in docker is deprecated. Update to use the new one based on https://github.com/nodesource/distributions#installation-instructions #### Modification #### Checklist - [ ] Tests updated - [ ] Docs updated - [ ] Issue linked in Title --- packages/cli/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/cli/Dockerfile b/packages/cli/Dockerfile index c6b086b038..26a9cfc75f 100644 --- a/packages/cli/Dockerfile +++ b/packages/cli/Dockerfile @@ -4,10 +4,14 @@ ENV NODE_ENV=PRODUCTION WORKDIR /app/ -# RUN apt-get update -# RUN apt-get install -y openssl ca-certificates > /dev/null 2>&1 -# RUN update-ca-certificates -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - +RUN apt-get update +RUN apt-get install -y ca-certificates curl 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 +ENV NODE_MAJOR=18 +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list + +RUN apt-get update RUN apt-get install -y nodejs git # Install sharp TODO update this when we change sharp versions