Official nginx image + nodejs/npm (5.x.x)
10K+
This is a Docker image that has nginx and node+npm v5.x.0 installed. I use it to deploy webapps built with browserify, but you could use it for anything that requires nginx and node.
It is built using the official/nginx image, and installing nodejs/npm on top of that.
In your Dockerfile, once you have browserified your code, simply the code into /usr/share/nginx/html.
In thisg example the npm run browserify task produced the browserified code in build directory.
RUN npm install && \
npm run browserify && \
cp -r build/* /usr/share/nginx/html/
Then you are ready to run your custom Docker container.
Content type
Image
Digest
Size
119.7 MB
Last updated
over 10 years ago
docker pull tjaart/browserify-docker