From 8bd60666a3b91d76bf9d513112aad97e315a3e46 Mon Sep 17 00:00:00 2001 From: Toomore Chiang Date: Sat, 8 Apr 2017 18:27:32 +0800 Subject: [PATCH 1/2] Fixed Dockerfile --- Dockerfile | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9abf5fe..2c98d8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,22 @@ -FROM golang:wheezy +FROM golang:latest MAINTAINER Toomore Chiang -RUN go get golang.org/x/tools/cmd/cover && \ - go get golang.org/x/tools/cmd/vet && \ - go get golang.org/x/tools/cmd/goimports && \ - go get github.com/golang/lint/golint && \ - go get github.com/toomore/gogrs && \ +WORKDIR /go/src/github.com/toomore/gogrs/ + +ADD ./cmd ./cmd +ADD ./realtime ./realtime +ADD ./tradingdays ./tradingdays +ADD ./twse ./twse +ADD ./utils ./utils + +ADD ./LICENSE ./ +ADD ./README.md ./ +ADD ./doc.go ./ +ADD ./goclean.sh ./ + +RUN \ cd /go/src/github.com/toomore/gogrs && \ go get -v ./... && \ - cd /go/src && \ - rm -rf ./* + go get github.com/golang/lint/golint && \ + go get github.com/mattn/goveralls && \ + go get golang.org/x/tools/cmd/goimports From a93be92849df49a70b346304ecae7dd73fd7307f Mon Sep 17 00:00:00 2001 From: Toomore Chiang Date: Sat, 8 Apr 2017 18:30:22 +0800 Subject: [PATCH 2/2] Tiny changed --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c98d8f..8b79fe2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,6 @@ ADD ./doc.go ./ ADD ./goclean.sh ./ RUN \ - cd /go/src/github.com/toomore/gogrs && \ - go get -v ./... && \ go get github.com/golang/lint/golint && \ - go get github.com/mattn/goveralls && \ - go get golang.org/x/tools/cmd/goimports + go get golang.org/x/tools/cmd/goimports && \ + go get -v ./...