Closed ainsleyclark closed 1 year ago
Make sure viplibs is installed on the host as it uses th host to compile this.
Not the dockerfile issue rather the host needs this. Same in a Mac
Thanks for your reply @Eventyret
Would you mind pointing me in the right direction to install this on the host? I don't know if I can control that considering it's on Digital Ocean?
If it's a droplet Then the sharp docs helps with this https://sharp.pixelplumbing.com/install#custom-prebuilt-binaries
Post of the os
It's on App Platform 🤔
Anyone stumbling across this adding libheif-dev
works:
RUN apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev libheif-dev > /dev/null 2>&1 # Add libheif-dev for HEIF support
🐛 Bug Report
🤷♀️ What did you do
Running the dockerfile on DigitalOcean runners produces a
Sharp
related error when transpiling to image formats.Dockerfile
⛔️ Error log
When uploading a file, the following error is thrown.
🕵️♀️ Stack trace
🙇♀️ Expected behavior/code
No error
👩💻 Environment
📺 Additional context/Screenshots
I'm wondering if there is something else that needs to be installed when converting images to
avif
andwebp
using thestrapi-responsive-image
plugin/