From 9552925b7395e097e719cc95df84193568b52a65 Mon Sep 17 00:00:00 2001 From: JiPai <3956400+PaiJi@users.noreply.github.com> Date: Sat, 14 Dec 2024 00:26:04 +0800 Subject: [PATCH] Fix compatibility with Postgres 17 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 043ae91..0955315 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.11.1-alpine AS build +FROM node:22.12.0-alpine3.21 AS build ENV NPM_CONFIG_UPDATE_NOTIFIER=false ENV NPM_CONFIG_FUND=false @@ -12,7 +12,7 @@ RUN npm ci && \ npm run build && \ npm prune --production -FROM node:20.11.1-alpine +FROM node:22.12.0-alpine3.21 WORKDIR /app @@ -20,10 +20,10 @@ COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/dist ./dist COPY --from=build /app/package.json ./ -ARG PG_VERSION='16' +ARG PG_VERSION='17' RUN apk add --update --no-cache postgresql${PG_VERSION}-client CMD pg_isready --dbname=$BACKUP_DATABASE_URL && \ pg_dump --version && \ - node dist/index.js \ No newline at end of file + node dist/index.js