-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Frontend monorepo build dockerfile #3141
Conversation
Size Change: 0 B Total Size: 927 kB ℹ️ View Unchanged
|
Thanks for sharing @sarayourfriend, I'm sure there is a lot for me to learn from here. I haven't had the opportunity to check it out yet, but I'll try to do so over the weekend. |
Closing this for now. It'd be great to get around to this as a way to simplify (and speed up) the build and even make it possible to run the frontend within the docker compose stack. I'll update the related issue to reflect the approach I started in this PR: #3118 |
Fixes
@dhruvkb I forgot I had some work done on this and just wanted to get it up in case you were interested in taking a look. It has some issues:
package.json
s and otherpnpm install
dependencies, we'd benefit way more heavily from cachingfrontend-prod-deps
layer should mount the pnpm store from the base layer instead of using thecache
mount type, which is far less reliable than the layer cache (at least in my local testing, I literally couldn't get it to hit even a single time, it always did a full re-download, no matter what I tried... maybe you can figure this out though?)COPY . /app
as long as the dockerignore stays configured the way it is now.Even without those changes, it already:
just frontend/up
and visitlocalhost:50291
. Make changes and it's just running the regular nuxt dev server 🎉Description
Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin