https://github.com/inadarei/node-alpine
Docker-container for Node based on Alpine, striving for perfection
https://github.com/inadarei/node-alpine
Last synced: 2 months ago
JSON representation
Docker-container for Node based on Alpine, striving for perfection
- Host: GitHub
- URL: https://github.com/inadarei/node-alpine
- Owner: inadarei
- Created: 2016-02-15T00:44:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T02:23:23.000Z (almost 8 years ago)
- Last Synced: 2025-04-23T22:53:48.754Z (6 months ago)
- Language: Shell
- Size: 46.9 KB
- Stars: 5
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-alpine
[![Docker Hub Link][docker-img]][docker-url]
[](https://imagelayers.io/?images=irakli/node-alpine:latest 'Node Alpine on Docker Hub')
Alpine-Linux-based, tiny Docker-container for Node, striving for perfection
Compare [25MB](https://hub.docker.com/r/irakli/node-alpine/tags/) of this container with typical 500MB to 800MB sizes you get with Ubuntu- or CentOS-based images.
### Runit Support
In most production deployments we would like a process monitor to restart our node service if it ever shuts down. On Alpine Linux such lightweight process monitor is: [runit](http://smarden.org/runit/), which you can install by using one of the *-runit tagged builds.
## Using
Insert at the top of your Dockerfile:
```
FROM irakli/node-alpine:6.2-runit
```
To see all supported versions:
For more advanced example of usage, see: https://github.com/inadarei/nodebootstrap/blob/master/Dockerfile
## Adding More Packages (if needed)
If you need more packages installed (e.g. make, gcc for compiling some native Node modules, or imagemagick etc.) base your new container on this one and you can use `apk` package manager that Alpine provides. For instance:
```
apk search --update imagemagick
```
or:
```
apk add --update make gcc g++ python linux-header
```
## License
[MIT](LICENSE)
[docker-img]: https://img.shields.io/badge/docker-ready-blue.svg
[docker-url]: https://hub.docker.com/r/irakli/node-alpine/