This commit is contained in:
1 parent
e803be7c47
commit
87c8c39372
1 file changed
+7
-2
+7
-2
@@ -7,10 +7,15 @@ FROM base AS deps
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
|
|
||||||
# System-Pakete für better-sqlite3 kompilieren
|
# System-Pakete für better-sqlite3 installieren
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++
|
||||||
|
|
||||||
# pnpm liest die erlaubten Pakete jetzt direkt aus der package.json oben!
|
# DIESE ZEILE FIXT ES: Wir schreiben die Erlaubnis direkt in die lokale .npmrc Konfigurationsdatei
|
||||||
|
RUN echo "only-built-dependencies[]=better-sqlite3" >> .npmrc && \
|
||||||
|
echo "only-built-dependencies[]=sharp" >> .npmrc && \
|
||||||
|
echo "only-built-dependencies[]=unrs-resolver" >> .npmrc
|
||||||
|
|
||||||
|
# Die Installation läuft jetzt ohne Sicherheits-Blockade durch
|
||||||
RUN pnpm i --frozen-lockfile
|
RUN pnpm i --frozen-lockfile
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|||||||
Reference in new issue
Block a user