Dockerize everything! ^_^

This commit is contained in:
2016-06-21 21:42:46 +01:00
parent e489412585
commit b0436f443c
3 changed files with 24 additions and 2 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:5.11.1
RUN mkdir /app
WORKDIR /app
COPY package.json /app/
RUN npm install
COPY . /app
ENV PORT=80
EXPOSE $PORT
CMD ["npm", "start"]

8
docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
version: "2"
services:
heartbit:
build: .
volumes:
- ./:/app
ports:
- "3000:80"

View File

@@ -12,8 +12,11 @@
"mocha": ">= 0.0.0",
"should": ">= 0.0.0"
},
"scripts": {
"start": "coffee server.coffee"
},
"engines": {
"node": "0.8.x",
"npm": "1.x.x"
"node": "5.x.x",
"npm": "3.x.x"
}
}