c0b / docker-elixir

Official Docker image for Elixir :whale: :turtle: :rocket:
http://elixir-lang.org/
190 stars 74 forks source link

Alpine-based images with Phoenix projects with brunch-sass break #131

Closed juulSme closed 4 years ago

juulSme commented 4 years ago

It seems that brunch-sass downloads node-sass, which attempts to download musl_binding 72 (whatever that is) which is then not found:

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.4/linux_musl-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.4/linux_musl-x64-72_binding.node": 

HTTP error 404 Not Found

And then everything goes to hell. Steps to reproduce:

docker pull elixir:1.9-alpine
# don't skip the previous step, it only fails with latest image that is based on alpine:3.11
docker run --rm elixir:1.9-alpine /bin/sh -c "apk add --update nodejs npm && npm install sass-brunch"

When attempting the same with image alpine:3.10, things work fine. I realise that this is an upstream issue, but it breaks all of our Phoenix projects which still use Brunch, which is quite a lot.

juulSme commented 4 years ago

Closing this issue because it really is something that should be fixed by the sass-brunch package or upstream erlang-image.