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

fix: resolve sharp lib dependency issue in docker image #38

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

dannytlake
Copy link
Contributor

There is a library dependency issue error when building the docker image by executing docker-compose up --build in the root directory:

docker-sharp-error

This is due to node image node:18-alpine missing the required libraries to run sharp, which is needed by the Next.js Image component

To resolve this, the Dockerfile is being updated to build from node:18-bookworm.

For an in depth guide on running Next.js in a Docker container, review the official Vercel example with-docker on how you can orchestrate building the container.

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
composable-ui ✅ Ready (Inspect) Visit Preview Mar 26, 2024 6:12pm
composable-ui-docs ✅ Ready (Inspect) Visit Preview Mar 26, 2024 6:12pm

Copy link

netlify bot commented Mar 26, 2024

Deploy Preview for composable-ui-storefront canceled.

Name Link
🔨 Latest commit 36afa0c
🔍 Latest deploy log https://app.netlify.com/sites/composable-ui-storefront/deploys/66030ff269f6c00007442afb

@dannytlake dannytlake merged commit b5c8764 into main Mar 26, 2024
8 checks passed
Copy link

Lines Statements Branches Functions
Coverage: 46%
45.08% (436/967) 19.08% (54/283) 19.58% (38/194)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant