Skip to content

Commit

Permalink
[frontend] update sharp to latest to avoid docker build issue on M1
Browse files Browse the repository at this point in the history
Building the frontend container image on an Apple M1 would result in
the following error during docker build:

    15.56 > Build error occurred
    15.56 [Error: ENOENT: no such file or directory, copyfile '/app/node_modules/sharp/build/Release/sharp-darwin-arm64v8.node' -> '/app/.next/standalone/node_modules/sharp/build/Release/sharp-darwin-arm64v8.node'] {
    15.56   errno: -2,
    15.56   code: 'ENOENT',
    15.56   syscall: 'copyfile',
    15.56   path: '/app/node_modules/sharp/build/Release/sharp-darwin-arm64v8.node',
    15.56   dest: '/app/.next/standalone/node_modules/sharp/build/Release/sharp-darwin-arm64v8.node'
    15.56 }

Updating sharp to v0.33.x avoids this problem, as that version includes
pre-built sharp binaries for various platforms, see
https://sharp.pixelplumbing.com/changelog#v0330---29th-november-2023
  • Loading branch information
basti1302 committed Feb 27, 2024
1 parent 0a1ad08 commit e47026a
Show file tree
Hide file tree
Showing 2 changed files with 483 additions and 298 deletions.
Loading

0 comments on commit e47026a

Please sign in to comment.