fix: issue with Docker build

This commit is contained in:
Stefan Imhoff
2026-01-20 14:09:40 +01:00
parent 6dce37487f
commit 531873fa03
3 changed files with 67 additions and 215 deletions

View File

@@ -1,7 +1,7 @@
# Stage 1: Build the application
FROM --platform=linux/amd64 node:lts AS builder
RUN npm install -g pnpm
RUN npm install -g pnpm@9
WORKDIR /app
@@ -9,6 +9,9 @@ COPY package*.json pnpm-*.yaml ./
RUN pnpm install
# Force install sharp with Linux x64 binaries
RUN pnpm remove sharp && pnpm add sharp
COPY . .
RUN pnpm run build