From addd5e896c28597734199947c60b41854deece2d Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 20 Dec 2024 02:47:57 +0000 Subject: [PATCH] fix(docker): use alpine 3.20 instead of 3.21 so prisma can find openssl context: https://github.com/nodejs/docker-node/issues/2175#issuecomment-2530130523 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3fd32d9..af8149f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM node:18-alpine AS builder +FROM node:22-alpine3.20 AS builder WORKDIR /build # install python etc so node-gyp works for the optional dependencies RUN apk add --no-cache make gcc g++ python3 @@ -13,7 +13,7 @@ RUN chmod +x ./scripts/start.sh RUN CI=true pnpm install --prod --frozen-lockfile COPY --link . . -FROM node:18-alpine AS runner +FROM node:22-alpine3.20 AS runner RUN apk --no-cache add curl \ && adduser --disabled-password --home /home/container container \ && mkdir /app \