From b0e57c976bf8f74b2454f59a30e4a1b5f11727b4 Mon Sep 17 00:00:00 2001 From: Chris O'Donnell <1666298+codfish@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:14:59 -0400 Subject: [PATCH] feat: use node v20.12.1 and use node-slim instead of alpine (#205) Fixes #204 --- .github/workflows/validate.yml | 2 +- .nvmrc | 2 +- Dockerfile | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 7d27b33..39fe32e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 20.11.0 + node-version-file: '.nvmrc' - run: npm ci diff --git a/.nvmrc b/.nvmrc index 7ea6a59..020fc41 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.11.0 +v20.12.1 diff --git a/Dockerfile b/Dockerfile index 009237b..7014e37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ -FROM node:20.11.0-alpine +FROM node:20.12.1-slim -RUN apk add --no-cache git +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates git \ + && rm -rf /var/lib/apt/lists/* # nice clean home for our action files RUN mkdir /action