This commit is contained in:
Liang Ding 2014-11-19 15:44:41 +08:00
parent 18eaadbe67
commit 14a01a3b78
2 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,10 @@
FROM golang:latest
MAINTAINER Liang Ding <dl88250@gmail.com>
RUN ./docker.sh
ADD . /go/src/github.com/b3log/wide
WORKDIR /go/src/github.com/b3log/wide
CMD ["./docker.sh"]
ENV GOROOT /usr/src/go

View File

@ -2,16 +2,14 @@
# Make docker image.
go get
go build
cp -r . /root/wide
go get github.com/88250/ide_stub
go get github.com/nsf/gocode
go get github.com/bradfitz/goimports
cp -r . /go/src/github.com/b3log/wide
cd /go/src/github.com/b3log/wide
go get
go build
cp -r . /root/wide
cd /root/wide
rm -rf /go/pkg /go/src
mv ./hello /go/src/hello
mv ./hello /go/src/