This commit is contained in:
1 parent
9715fd2df7
commit
b9a6f56211
1 file changed
+3
-1
+3
-1
@@ -1,4 +1,4 @@
|
||||
FROM node:22-alpine AS base
|
||||
FROM docker.io/library/node:22-alpine AS base
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corepack enable
|
||||
@@ -6,6 +6,8 @@ RUN corepack enable
|
||||
FROM base AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
# DIESE ZEILE HINZUFÜGEN: Erlaubt das Kompilieren von better-sqlite3 und sharp
|
||||
RUN pnpm config set only-built-dependencies --json '["better-sqlite3", "sharp"]'
|
||||
RUN pnpm i --frozen-lockfile
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
Reference in new issue
Block a user