diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 3eda957..42fc0b0 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "20.x" cache: "npm" - name: Install dependencies run: npm ci --include=dev diff --git a/Dockerfile b/Dockerfile index 5674104..296f67f 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Adapted from https://docs.strapi.io/dev-docs/installation/docker#production-dockerfile # Creating multi-stage build for production -FROM node:18-alpine AS build +FROM node:20-alpine AS build RUN apk update && apk add --no-cache build-base zlib-dev libpng-dev vips-dev > /dev/null 2>&1 ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} @@ -15,7 +15,7 @@ COPY . . RUN npm run build # Creating final production image -FROM node:18-alpine +FROM node:20-alpine RUN apk add --no-cache vips-dev ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} diff --git a/package.json b/package.json index 4885cd2..444d2a6 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "supertest": "^6.3.3" }, "engines": { - "node": ">=18.x.x", + "node": ">=18.0.0 <=20.x.x", "npm": ">=6.0.0" }, "strapi": {