Skip to content

Commit 2160629

Browse files
authored
Docker: resolve build issues (DeviaVir#1136)
* Docker: resolve build issues * Update Dockerfile
1 parent a8ef2ef commit 2160629

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ FROM node:8
33
RUN mkdir -p /app
44
WORKDIR /app
55

6-
COPY package.json /app/
7-
COPY webpack.config.js /app/
8-
COPY webpack-src /app/webpack-src
9-
COPY templates /app/templates
6+
COPY . /app
107
RUN npm install -g node-gyp
11-
RUN npm install --unsafe-perm
8+
RUN npm install --unsafe
129

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

1612
ENV NODE_ENV production

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "zenbot4",
33
"version": "4.1.0",
44
"description": "Cryptocurrency trading bot",
5-
"bugs": "https://github.com/carlos8f/zenbot/issues",
5+
"bugs": "https://github.com/deviavir/zenbot/issues",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/carlos8f/zenbot.git"
9+
"url": "https://github.com/deviavir/zenbot.git"
1010
},
1111
"main": "./index.js",
1212
"bin": {
@@ -104,6 +104,6 @@
104104
"yargs": "^10.0.3"
105105
},
106106
"engines": {
107-
"node": "^8.0.0 || ^9.0.0"
107+
"node": "^8.3.0 || ^9.0.0"
108108
}
109109
}

post_install.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ shell.rm('-rf', 'node_modules/forex.analytics/.git')
55
console.log('bundling WebApp components')
66
shell.exec('webpack -p')
77
console.log('installing genetic_backtester components')
8-
shell.cd('scripts/genetic_backtester/')
9-
shell.exec('npm i')
8+
shell.exec('(cd scripts/genetic_backtester/ && npm i)')

0 commit comments

Comments
 (0)