This commit is contained in:
parent
18eaadbe67
commit
14a01a3b78
|
@ -1,7 +1,10 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
MAINTAINER Liang Ding <dl88250@gmail.com>
|
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
|
ENV GOROOT /usr/src/go
|
||||||
|
|
||||||
|
|
12
docker.sh
12
docker.sh
|
@ -2,16 +2,14 @@
|
||||||
|
|
||||||
# Make docker image.
|
# Make docker image.
|
||||||
|
|
||||||
|
go get
|
||||||
|
go build
|
||||||
|
cp -r . /root/wide
|
||||||
|
|
||||||
go get github.com/88250/ide_stub
|
go get github.com/88250/ide_stub
|
||||||
go get github.com/nsf/gocode
|
go get github.com/nsf/gocode
|
||||||
go get github.com/bradfitz/goimports
|
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
|
cd /root/wide
|
||||||
rm -rf /go/pkg /go/src
|
rm -rf /go/pkg /go/src
|
||||||
mv ./hello /go/src/hello
|
mv ./hello /go/src/
|
||||||
|
|
Loading…
Reference in New Issue