mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
Dockerize everything! ^_^
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
version: "2"
|
||||||
|
services:
|
||||||
|
heartbit:
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- ./:/app
|
||||||
|
ports:
|
||||||
|
- "3000:80"
|
||||||
@@ -12,8 +12,11 @@
|
|||||||
"mocha": ">= 0.0.0",
|
"mocha": ">= 0.0.0",
|
||||||
"should": ">= 0.0.0"
|
"should": ">= 0.0.0"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "coffee server.coffee"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "0.8.x",
|
"node": "5.x.x",
|
||||||
"npm": "1.x.x"
|
"npm": "3.x.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user