diff --git a/backend/Dockerfile b/backend/Dockerfile index 19607f5..26c7694 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -12,8 +12,10 @@ RUN apt-get update \ # Package-Dateien COPY package*.json ./ -# Dev + Prod Dependencies (für TS-Build nötig) -RUN npm install +# Dev + Prod Dependencies (für TS-Build nötig). +# 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 COPY . .