KI-AGENT: Sharp im Backend-Container für Linux installieren

This commit is contained in:
2026-05-18 20:12:19 +02:00
parent 0f56102030
commit f5755993b5

View File

@@ -12,8 +12,10 @@ RUN apt-get update \
# Package-Dateien # Package-Dateien
COPY package*.json ./ COPY package*.json ./
# Dev + Prod Dependencies (für TS-Build nötig) # Dev + Prod Dependencies (für TS-Build nötig).
RUN npm install # Sharp benötigt im Linux-Container native optionale Pakete, auch wenn das Lockfile auf macOS erzeugt wurde.
RUN npm install --include=optional \
&& npm install --include=optional --os=linux --cpu=x64 sharp
# Restlicher Sourcecode # Restlicher Sourcecode
COPY . . COPY . .