Hi there,
I’m building an app through Docker, which at some point runs npx svg-sprite [...]
.
During local build, everything goes through fine. On Heroku too (which I’m leaving, trying to move to fly.io now). However, here on the runner, I get a “Permission denied” error - I’d love to say that there is more information to that, but from the log I can see, I don’t see nothing really interesting.
Literaly:
=> ERROR [app_builder 12/13] RUN mix assets.deploy 16.2s
(non interesting logs, things that go as they should)
#20 7.659 npm WARN exec The following package was not found and will be installed: svg-sprite
#20 15.38 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
#20 16.04 sh: svg-sprite: Permission denied
#20 16.08 ** (exit) 127
(elixir's mix trace)
So I was wondering, is there any difference when building a Dockerfile on Fly, compared to a local machine or to Heroku’s build system ?
Feel free to ask me for any more information - I know there isn’t much, but I can’t seem to find anything relevant looking.
Thanks in advance !
On a side-note: if you’re wondering why I use a Dockerfile instead of the pre-built Phoenix configuration, it’s just that I worked like that before, and didn’t want to change, though I might consider it if I really can’t make it work.