Skip to content
Gilbert edited this page Jul 22, 2015 · 2 revisions

To add support for Docker, you only need two files: Dockerfile and docker-compose.yml

Dockerfile

In the root project directly, create a file named Dockerfile with the following contents:

FROM mhart/alpine-iojs:2.1.0
WORKDIR /src

docker-compose.yml

In the root project directly, create a file named docker-compose.yml with the following contents:

app:
  build: .
  ports:
   - "4000:4000"
  volumes:
   - .:/src
  command: "npm start"
  restart: always

Running using Docker

$ docker-compose build
$ docker-compose run app npm install
$ docker-compose up
Clone this wiki locally