Skip to content

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

Merged
dannytlake merged 1 commit intomainfrom
fix/docker-image-error-sharplib
Mar 26, 2024
Merged

fix: resolve sharp lib dependency issue in docker image#38
dannytlake merged 1 commit intomainfrom
fix/docker-image-error-sharplib

Conversation

@dannytlake
Copy link
Copy Markdown
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.

@vercel
Copy link
Copy Markdown

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

@netlify
Copy link
Copy Markdown

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
@github-actions
Copy link
Copy Markdown

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