KI-AGENT: Sharp im Backend-Container für Linux installieren
This commit is contained in:
@@ -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 . .
|
||||||
|
|||||||
Reference in New Issue
Block a user