RUN RAILS_ENV=production rake assets:precompile
Compiling... Compilation Failed:
Webpacker does not like this.
package.json does not like this.
package-lock.json doesn’t like this. I am pretty sure
yarn.lock doesnt like this. And even Rails didnt like this! It was just a bad combo.
When you see an error what do you do?
I saw this error and I had no idea what to do. Usually I am pointed to a line number or a method that is broken due to failed dependencies. This was new to me. This error failed silently reporting no issues besides this note and exiting from the docker build with an exit status of 1.
I was really stuck for a while and didn’t know what to do, so I did what any hacker would do and Googled it. Google came up with a few issues
Update Alpine Packages to Edge!
What the crust. There were 2 different node versions I needed to get the most current yarn version and the latest npm version for the image.