mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
fix: issue with Docker build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user