Repository navigation
node: add slim variant - #19
Conversation
|
Aren't there a fair number of Node modules that do require development headers? I think in my testing I ran into a few, but I don't recall for certain. I'm definitely in favor of |
|
@tianon maybe we could write something against the npm API that try to If we found out that some headers are used by a majority of packages (I suspect the set will be different from language like ruby), we could always add them to the In addition, when and if moby/moby#8240 is accepted, we will have a way to |
|
@proppy what do you mean with "write something against the npm API that try to :onbuild and see which one fails"? Do want to check all the npm installable packages for external dependencies? The extra benefit of the I suggest we start making |
Yes, I though it'be interesting to probe the npm archive for external dependencies through its API (if such a thing exists).
But it does come at the cost of a few hunders MB. I'd argue that most of the |
|
PTAL refactored the change to create a slim variant, instead of modifying the default. We can then discuss what should be the default for |
|
rebased. |
|
added 0.8 slim variant PTAL! |
There was a problem hiding this comment.
Why not just add "$version/slim/Dockerfile" to the end of this line instead of duplicating this whole sed?
|
LGTM |
There was a problem hiding this comment.
Can we get a && rm -rf /var/lib/apt/lists/* like golang? Not a blocker, we could still merge this and add the rm to all the variants of node. (ie, LGTM)
|
Fair @yosifkit; let's make a new PR to add that to "all the things" 😄 |
Main changes are: