Replies: 4 comments 2 replies
-
OK update: I forgot I also added the I think the issue boils down to this:
At first I was thinking the cache mount was to blame, but after some experimentation, I realized that's not it. The issue is (apparently?) that Re-ordering these so that |
Beta Was this translation helpful? Give feedback.
-
I guess these lines are right next to each other, so it's just the |
Beta Was this translation helpful? Give feedback.
-
The following code in the template should have installed yarn with corelib: If |
Beta Was this translation helpful? Give feedback.
-
If you used Yes, you want node_modules in your .dockerignore. I'll try to reproduce the caching problem tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Background: while my project is still young, I decided to switch from the "old & busted" bootstrap to "new hotness" Tailwind. Decided to use Flowbite so I don't have to build everything from scratch.
Anyway I added the tailwindcss-rails gem and decided to use Node 18 + Yarn 3 (with
node_modules/
). So I didyarn add flowbite
andyarn add flowbite-typography
. Everything works great locally, even theprecompile
task runs fine.I regenerated my Dockerfile with
rails g dockerfile
. The first problem I ran into was installing yarn. Apparently you can'tnpm install -g [email protected]
, so I had to customize it in order to install Yarn 3So that got me past that part. But now precompile is failing with:
I have zero idea how to debug this. I'd love to just be able to inspect the filesystem at this point. Why hasn't
docker
introduced adebugger
line so I can inspect failing builds?? 😭Beta Was this translation helpful? Give feedback.
All reactions