/docker-alpine-nodejs

Minimalistic Docker image with NodeJS

Primary LanguageShellMIT LicenseMIT

Docker Stars Docker Pulls

Alpine NodeJS

This image is based on evild/alpine-base

Version

Current

Stable

LTS

Example

What is Node.js?

Node.js is a software platform for scalable server-side and networking applications. Node.js applications are written in JavaScript and can be run within the Node.js runtime on Mac OS X, Windows, and Linux without changes.

Node.js applications are designed to maximize throughput and efficiency, using non-blocking I/O and asynchronous events. Node.js applications run single-threaded, although Node.js uses multiple threads for file and network events. Node.js is commonly used for real-time applications due to its asynchronous nature.

Node.js internally uses the Google V8 JavaScript engine to execute code; a large percentage of the basic modules are written in JavaScript. Node.js contains a built-in, asynchronous I/O library for file, socket, and HTTP communication. The HTTP and socket support allows Node.js to act as a web server without additional software such as Apache.

Installation

Automated builds of the image are available on Dockerhub and is the recommended method of installation.

docker pull evild/alpine-nodejs:6.0.0

You can also pull the latest tag which is built from the repository HEAD.

docker pull evild/alpine-nodejs:latest

current, stable & lts are also available.

docker pull evild/alpine-nodejs:current
docker pull evild/alpine-nodejs:stable
docker pull evild/alpine-nodejs:lts

Alternatively you can build the image locally.

docker build -t evild/alpine-nginx github.com/evild67/alpine-nginx

How to use this image

Checkout my exemple. It's easy :).

You can also do :

docker run -name alpine-nodejs-app evild/alpine-nodejs:exemple

App dependencies installation

You need to add first your package.json and then npm install. Docker use his cache when the package.json isn't changed. The build will be faster.

Example

example tag is available

docker pull evild/alpine-nodejs:example

You can also checkout some projects build with this docker image :