anapsix/docker-nodejs is a public repo on GitHub by anapsix. NodeJS in a box. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in Shell, has 3 stars and last changed on 2018-01-26. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
NodeJS in a box
Alpine Linux 3.6 Docker image with NodeJS v6.10.3
Usage
It's assumed that you have working ./package.json with resolvable dependencies and proper start script, so that npm install and npm start works.
You should customize your EXPOSE [] according to server.js.
You can also add ENTRYPOINT, override CMD and add dependencies as needed.
building from onbuild tag:
# Dockerfile
FROM anapsix/nodejs:onbuild
EXPOSE 5080
To permanently install additional AlpineLinux packages, place one package name per line into ./deps.apk.
Applies to latest as well as onbuild.
For custom actions, create deps.sh executable script.
For build-time only dependencies (e.g. bson npm package requires make and g++ to compile c++ extention), use ./deps_build.apk.
All packages will be installed before npm install and removed immediately after, for the sake of making resulting image smaller.
Applies to latest as well as onbuild, except that latest will not cleanup the build-time dependencies.
NOTE:
latest tries to resolve dependencies during docker run, before running npm install && npm start (assuming you did not override the CMD)
onbuild resolves dependencies during docker build, cleans up build-time dependencies and the only command executed during docker run is npm start (assuming you did not override the CMD)
TODO
Add ./examples
Questions
What is docker-nodejs?
anapsix/docker-nodejs is a public repo on GitHub by anapsix. NodeJS in a box.
Is docker-nodejs open source?
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Does docker-nodejs run on macOS, Windows or Linux?
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
How do I install docker-nodejs?
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Is docker-nodejs still maintained?
Its last change on GitHub was on 2018-01-26. Take My Repo does not judge from that whether it is maintained.
What do people who ran docker-nodejs say?
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.