-
Notifications
You must be signed in to change notification settings - Fork 41
Docker Support
Gilbert edited this page Jul 22, 2015
·
2 revisions
To add support for Docker, you only need two files: Dockerfile
and docker-compose.yml
In the root project directly, create a file named Dockerfile
with the following contents:
FROM mhart/alpine-iojs:2.1.0
WORKDIR /src
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
$ docker-compose build
$ docker-compose run app npm install
$ docker-compose up