-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Question] Docker multi-stage builds with Bazel #139
Comments
@dlorenc @alexeagle FYI tl;dr There isn't a good story today, but I'd like one. Today rules_nodejs requires you to In my idealized world, containerizing a Node.js application with Bazel would be as simple as rewriting |
Thanks for your fast answer. I was indeed looking at a similar solution. Happy to contribute if we see a clear way forward. |
@corradio Yes, although it is not clear to me that there is any good "cross-installation" story for any of the common package managers (e.g. I think that there are two tiers of this:
If there is a story for cross-installation in |
So I have a basic The reason for this is that the entrypoint that I'll keep looking at this, but that seems like good progress :) |
Great! I'm quite busy in the next days but will try to help out as soon as I have a bit of time. |
If you have a chance to check it out here's the PR: bazelbuild/rules_docker#254 It is based on a couple PRs that need to land elsewhere (thus WiP), but I'd appreciate a second opinion on its readiness :) thanks. |
Is this still relevant? |
Closing as the question seems obsolete now. |
Hi,
I'm looking for best practices to build a nodejs Docker container using Bazel.
Ideally I would use a two-stage docker build (first to build node modules + compile, second to add the compiled assets). However, I can't find how to do that using Bazel.
Is this possible?
Best,
Olivier
The text was updated successfully, but these errors were encountered: