From f49edc7129a6854567c38bf7496b831ec9b6ff01 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Tue, 12 Dec 2023 12:15:19 +0100 Subject: [PATCH] fix(form): use alpine3.16 for prisma --- formulaire/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/formulaire/Dockerfile b/formulaire/Dockerfile index e24dc07d8..7302f1dfe 100644 --- a/formulaire/Dockerfile +++ b/formulaire/Dockerfile @@ -1,5 +1,5 @@ # 1. Install node dependencies only when needed -FROM node:alpine3.18 AS deps +FROM node:alpine3.16 AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY yarn.lock .yarnrc.yml ./ @@ -7,7 +7,7 @@ COPY .yarn .yarn RUN yarn fetch --immutable && yarn cache clean # 2. Rebuild the source code only when needed -FROM node:alpine3.18 AS builder +FROM node:alpine3.16 AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -42,7 +42,7 @@ RUN yarn workspaces focus --production && yarn cache clean RUN npx prisma generate # Production image, copy all the files and run next -FROM node:alpine3.18 AS runner +FROM node:alpine3.16 AS runner RUN apk add --no-cache postgresql-client WORKDIR /app ENV NODE_ENV production