Fixes Docker build

https://github.com/thrasher-/gocryptotrader/issues/162

Also enabled webserver so that communication can happen between the docker web and cli containers
This commit is contained in:
Adrian Gallagher
2018-08-03 15:36:34 +10:00
parent 1e68b48547
commit 6b575dd925
2 changed files with 6 additions and 7 deletions

View File

@@ -1,9 +1,8 @@
FROM golang:1.9.4 as build
FROM golang:1.10 as build
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
WORKDIR /go/src/gocryptotrader
COPY Gopkg.* ./
RUN dep ensure -vendor-only
COPY . .
RUN dep ensure
RUN mv -vn config_example.json config.json \
&& GOARCH=386 GOOS=linux CGO_ENABLED=0 go install -v \
&& mv /go/bin/linux_386 /go/bin/gocryptotrader

View File

@@ -116,13 +116,13 @@
]
},
"Webserver": {
"Enabled": false,
"Enabled": true,
"AdminUsername": "admin",
"AdminPassword": "Password",
"ListenAddress": ":9050",
"WebsocketConnectionLimit": 0,
"WebsocketMaxAuthFailures": 0,
"WebsocketAllowInsecureOrigin": false
"WebsocketConnectionLimit": 1,
"WebsocketMaxAuthFailures": 3,
"WebsocketAllowInsecureOrigin": true
},
"Exchanges": [
{