Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] update sharp to latest to avoid docker build issue on M1 #5

Merged
merged 1 commit into from
Feb 1, 2024

Commits on Feb 1, 2024

  1. [frontend] update sharp to latest to avoid docker build issue on M1

    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
    basti1302 committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    3ff1119 View commit details
    Browse the repository at this point in the history