Skip to content

Commit

Permalink
fix(docker): install sharp for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
klieber committed Jun 23, 2023
1 parent 00c1b66 commit 52c9b3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM node:16.20.1
FROM node:16.20.1-bullseye-slim

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm ci --only=production --ignore-scripts
RUN npm ci --platform=linux --arch=x64 --only=production --ignore-scripts
RUN npm uninstall sharp && npm install --platform=linux --arch=x64 sharp

COPY . .

Expand Down

0 comments on commit 52c9b3f

Please sign in to comment.