-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support for bun runtime #2 #4152
Comments
Did you see #3511 (comment) ? |
@lovell Tried with |
The Debian-based container should work. It looks like you're using a relatively complex Dockerfile that is selectively copying files between layers and from the host so make sure you understand what each directive is doing. For example, this
|
@lovell Thanks for the help. Turned out I was being stupid and locally symlinking my node_modules (causing the error). So instead of this: xxx:
volumes:
- ./xxx:/usr/src/app
ports:
- '8080:8000' It needed to be this: xxx:
volumes:
- ./xxx:/usr/src/app
- /usr/src/app/node_modules <<< to ignore the node modules for mounting a volume
ports:
- '8080:8000' |
Duplicate of #3511 which is still happening for me.
Possible bug
When building and running a Hono API via Bun in Docker(compose) using the sharp package the following error happens:
Versions:
Here is my Dockerfile:
Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharp
completes without error.node -e "require('sharp')"
completes without error.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?Does this problem relate to file caching?
sharp.cache(false)
does not fix this problem.Does this problem relate to images appearing to have been rotated by 90 degrees?
rotate()
orkeepExif()
does not fix this problem.What are the steps to reproduce?
Create a simple hono app with Bun, import sharp and dockerize it like the example above.
What is the expected behaviour?
Everything should work.
The text was updated successfully, but these errors were encountered: