Skip to content

Commit

Permalink
Added support for Node 20, deprecated support for Node 14
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Sanino <[email protected]>
Signed-off-by: Alessandro Sanino <[email protected]>
  • Loading branch information
saniales committed Sep 9, 2023
1 parent 830664c commit 71ebcfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-kaniko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION="latest"
ARG NODE_VERSION="alpine"
ARG NETLIFY_CLI_VERSION="latest"

FROM node:$NODE_VERSION as builder
Expand All @@ -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

0 comments on commit 71ebcfe

Please sign in to comment.