From 71ebcfe7a61b3a0fb3fc8a24ffd25ffb6dcdf218 Mon Sep 17 00:00:00 2001 From: Alessandro Sanino <3513298+saniales@users.noreply.github.com> Date: Fri, 28 Jul 2023 10:36:00 +0200 Subject: [PATCH] Added support for Node 20, deprecated support for Node 14 Signed-off-by: Alessandro Sanino <3513298+saniales@users.noreply.github.com> Signed-off-by: Alessandro Sanino --- .github/workflows/dockerhub-kaniko.yml | 2 +- Dockerfile | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dockerhub-kaniko.yml b/.github/workflows/dockerhub-kaniko.yml index ae6d80d..f7e1491 100644 --- a/.github/workflows/dockerhub-kaniko.yml +++ b/.github/workflows/dockerhub-kaniko.yml @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14, 16, 18] + node-version: [16, 18, 20] distro: ["", "-alpine"] env: NODE_VERSION: "${{ matrix.node-version }}${{ matrix.distro }}" diff --git a/Dockerfile b/Dockerfile index 4596d8f..7c44b70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG NODE_VERSION="latest" +ARG NODE_VERSION="alpine" ARG NETLIFY_CLI_VERSION="latest" FROM node:$NODE_VERSION as builder @@ -16,13 +16,18 @@ LABEL org.opencontainers.image.documentation="https://github.com/tryvium-travels ENV NETLIFY_AUTH_TOKEN="" -RUN wget https://gobinaries.com/tj/node-prune && chmod a+x node-prune && ./node-prune RUN yarn config set global-folder "/global/" RUN yarn config set cache-folder "/tmp/yarn-cache" RUN yarn global add \ - --no-lockfile \ + --non-interactive \ + node-gyp +RUN yarn global add \ --non-interactive \ "netlify-cli@$NETLIFY_CLI_VERSION" RUN yarn cache clean --all +RUN wget https://gobinaries.com/tj/node-prune && \ + chmod a+x node-prune && \ + ./node-prune && \ + rm node-prune ENTRYPOINT netlify