Skip to content

Commit

Permalink
Docker: resolve build issues (DeviaVir#1136)
Browse files Browse the repository at this point in the history
* Docker: resolve build issues

* Update Dockerfile
  • Loading branch information
DeviaVir authored and defkev committed Jan 14, 2018
1 parent 8814f49 commit da853a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ FROM node:8
RUN mkdir -p /app
WORKDIR /app

COPY package.json /app/
COPY webpack.config.js /app/
COPY webpack-src /app/webpack-src
COPY templates /app/templates
COPY . /app
RUN npm install -g node-gyp
RUN npm install --unsafe-perm
RUN npm install --unsafe

COPY . /app
RUN ln -s /app/zenbot.sh /usr/local/bin/zenbot

ENV NODE_ENV production
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "zenbot4",
"version": "4.1.0",
"description": "Cryptocurrency trading bot",
"bugs": "https://github.com/carlos8f/zenbot/issues",
"bugs": "https://github.com/deviavir/zenbot/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/carlos8f/zenbot.git"
"url": "https://github.com/deviavir/zenbot.git"
},
"main": "./index.js",
"bin": {
Expand Down Expand Up @@ -104,6 +104,6 @@
"yargs": "^10.0.3"
},
"engines": {
"node": "^8.0.0 || ^9.0.0"
"node": "^8.3.0 || ^9.0.0"
}
}
3 changes: 1 addition & 2 deletions post_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ shell.rm('-rf', 'node_modules/forex.analytics/.git')
console.log('bundling WebApp components')
shell.exec('webpack -p')
console.log('installing genetic_backtester components')
shell.cd('scripts/genetic_backtester/')
shell.exec('npm i')
shell.exec('(cd scripts/genetic_backtester/ && npm i)')

0 comments on commit da853a0

Please sign in to comment.