Skip to content

Commit

Permalink
Fixes Docker build
Browse files Browse the repository at this point in the history
https://github.com/thrasher-/gocryptotrader/issues/162

Also enabled webserver so that communication can happen between the docker web and cli containers
  • Loading branch information
thrasher- committed Aug 3, 2018
1 parent 1e68b48 commit 6b575dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down

0 comments on commit 6b575dd

Please sign in to comment.