Skip to content

Commit

Permalink
✨ [Docker] Reconfigure docker files and package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duelist committed Oct 15, 2016
1 parent ddb9c8b commit fce51cd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
9 changes: 9 additions & 0 deletions Dockerfile.bot
@@ -0,0 +1,9 @@
FROM node:latest

RUN mkdir -p /usr/src/metabot
WORKDIR /usr/src/metabot/bot

COPY . /usr/src/metabot
RUN npm install

CMD ["npm", "run", "bot"]
9 changes: 0 additions & 9 deletions bot/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion bot/index.js
@@ -1,4 +1,4 @@
require('./globals')
require('../globals')

let metabotConfig = requireRoot('bot/configs/metabot')
let metabot = requireRoot('bot/metabot')
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
@@ -1,6 +1,6 @@
bot:
build: .
dockerfile: Dockerfile
dockerfile: Dockerfile.bot
links:
- redis
redis:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -17,11 +17,11 @@
"url": "https://github.com/Duelist/metabot/issues"
},
"scripts": {
"bot": "env NODE_ENV=production node bot/index.js",
"bot-local": "env DEBUG=* node bot/index.js",
"lint": "eslint \"**/*.js\"",
"pretest": "npm run lint",
"pretest-cover": "npm run lint",
"start": "env NODE_ENV=production node index.js",
"start-local": "env DEBUG=* node index.js",
"test": "mocha",
"test-cover": "istanbul cover _mocha",
"test-grep": "DEBUG=* mocha --bail --grep",
Expand Down

0 comments on commit fce51cd

Please sign in to comment.