-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Replace onbuild with alpine in Dockerfile example #471
Conversation
Replacing onbuild with alpine from example as onbuild is deprecated
remove onbuild from example
I don't agree with choosing the alpine variant for the example. The reasoning is, more or less, spell out in https://github.com/nodejs/docker-node#nodealpine It would also be better to encourage people to pin to a major or major-minor version, such as Also, most of the example text for that section assumes the
It would probably be better to replace the whole |
And we'd want to make sure any doc changes also land on https://hub.docker.com/_/node/ via a PR to https://github.com/docker-library/docs |
I have yet to hit anything using alpine that behaved differently. Why shouldn't the smallest image be recommended? I suppose if it's aimed at beginners in Docker, but then I'd rather point to some other documentation (and document the caveats that come with using alpine, ref #384).
Agreed. |
I suggest changing the example more in line of this one: FROM node:8
WORKDIR /usr/src/app
ADD package.json /usr/src/app
RUN npm install
ADD . /usr/src/app
CMD ["node" "index.js"] |
I do not agree with this statement. It is the Node.js Foundation's policy to strictly follow Semantic Versioning which means that feature and patch versions are safe with regards to incompatible or breaking changes. Keep in mind that minor versions no longer receives patches when the next minor version is released. |
Usually yes, but there have been breakages in all components that we ship (Node, NPM, Yarn). I personally wouldn't base a production image on anything else than a strictly specified version (MAJOR.MINOR.PATCH). |
How about using |
Pull request that specifies the current LTS as base image in the Dockerfile example: #482 |
Closed in #482 (although we should expand on the instructions, as mentioned there. PR welcome!) |
Since onbuild is deprecated it should not be in the Dockerfile example.