ht-docker-node/README.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

2016-03-07 02:32:20 +00:00
# ht-docker-node
This image is available on DockerHub. Specify it as base image like so:
```Dockerfile
FROM hosttoday/ht-docker-node
```
## Status
2016-07-12 14:20:58 +00:00
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
2016-06-08 21:09:24 +00:00
2016-03-07 02:32:20 +00:00
## Usage
2016-07-12 14:20:58 +00:00
The purpose of this Docker image is to provide a robust base for node apps and CI.
It comes in different flavours and all of them have node, npm, git and ssh in PATH.
2016-06-08 21:09:24 +00:00
2016-07-12 14:20:58 +00:00
The **:npmci flavour** has npmci in path and can install any required node version and update PATH accordingly:
2016-03-07 02:32:20 +00:00
2016-03-07 02:35:09 +00:00
```Dockerfile
2016-07-12 14:20:58 +00:00
FROM hosttoday/ht-docker-node:npmci
2016-05-30 02:19:09 +00:00
RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions
2016-03-07 02:35:09 +00:00
```
2016-07-12 14:20:58 +00:00
## Flavour Overview:
2016-06-08 21:09:24 +00:00
* **:lts** - node lts version, equals :latest
* **:stable** - node stable version
* **:npmci** - npmci preinstalled
* **:npmts** - npmci + npmts preinstalled
* **:npmpage** - npmci + npmts + npmpage preinstalled
* **:python3** - like :latest, but with python3 as standard python version