diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c3bc3fd..7baf877e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [18.x] services: mariadb: @@ -76,7 +76,7 @@ jobs: name: Setup Node.js for use with actions uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - name: Install Deps run: npm install --unsafe-perm diff --git a/docker/alpine/Dockerfile.build b/docker/alpine/Dockerfile.build index 556cad42..74d69646 100644 --- a/docker/alpine/Dockerfile.build +++ b/docker/alpine/Dockerfile.build @@ -1,7 +1,7 @@ #-----------------BUILDER----------------- #----------------------------------------- -FROM node:16-alpine3.17 AS builder -RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \ +FROM node:18-alpine3.16 AS builder +RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.16/community/ \ python3 build-base sqlite-dev sqlite-libs vips-dev fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python COPY pigallery2-release /app WORKDIR /app @@ -14,7 +14,7 @@ RUN mkdir -p /app/data/config && \ #-----------------MAIN-------------------- #----------------------------------------- -FROM node:16-alpine3.17 AS main +FROM node:18-alpine3.16 AS main WORKDIR /app ENV NODE_ENV=production \ # overrides only the default value of the settings (the actualy value can be overwritten through config.json) diff --git a/package-lock.json b/package-lock.json index ffedb78f..de0cf2c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -121,7 +121,7 @@ "zone.js": "0.11.5" }, "engines": { - "node": ">=16 <17.0" + "node": ">=18 <19.0" }, "optionalDependencies": { "ffmpeg-static": "5.1.0", diff --git a/package.json b/package.json index 8cf79c11..366ee2dc 100644 --- a/package.json +++ b/package.json @@ -145,6 +145,6 @@ "mysql": "2.18.1" }, "engines": { - "node": ">=16 <17.0" + "node": ">=18 <19.0" } }