This is because alpine recently moved the vips-dev package from edge/testing to edge/community. See this issue for some context on the sharp repo: github.com/lovell/sharp/issues/1733
To fix it, just change the repo URL in the post above from: http://dl-3.alpinelinux.org/alpine/edge/testing to http://dl-3.alpinelinux.org/alpine/edge/community.
Also, I had to change the --no-cache in the second apk command to --update-cache as is suggested in one of the referenced PRs off the above issue. So, your full docker RUN command for APK installs would look like this (formatting changed):
Hope that helps someone else. It had me stuck for a while. :-P
In addition, yarn fails for me with the latest node (for alpine or otherwise). So, I also had to change the FROM line to fix it to the latest v8. E.g.,
FYI: At the time of writing, Edge was the only option for this... and I really don't have time to keep this updated. Thanks for the heads up, I'll make another note at the top!
Just a note for anyone else that reads this and runs into this error:
This is because alpine recently moved the vips-dev package from
edge/testing
toedge/community
. See this issue for some context on thesharp
repo: github.com/lovell/sharp/issues/1733To fix it, just change the repo URL in the post above from:
http://dl-3.alpinelinux.org/alpine/edge/testing
tohttp://dl-3.alpinelinux.org/alpine/edge/community
.Also, I had to change the
--no-cache
in the second apk command to--update-cache
as is suggested in one of the referenced PRs off the above issue. So, your full dockerRUN
command for APK installs would look like this (formatting changed):Hope that helps someone else. It had me stuck for a while. :-P
In addition, yarn fails for me with the latest node (for alpine or otherwise). So, I also had to change the
FROM
line to fix it to the latest v8. E.g.,Here does not Work! Need to change python to python3. E.g.:
This doesn't work anymore. Also don't use edge, always pin down a stable version.
See more here: gitlab.alpinelinux.org/alpine/apor...
Change to version 3.10.
FYI: At the time of writing, Edge was the only option for this... and I really don't have time to keep this updated. Thanks for the heads up, I'll make another note at the top!
Thanks for this :D
Awesome! Thanks for your super helpful comment, Jonathan! I'll be sure to make a note in the original post to see your comment.