This commit is contained in:
parent
8d5fea50ae
commit
18eaadbe67
14
Dockerfile
14
Dockerfile
|
@ -1,19 +1,7 @@
|
|||
FROM golang:latest
|
||||
MAINTAINER Liang Ding <dl88250@gmail.com>
|
||||
|
||||
RUN go get github.com/88250/ide_stub
|
||||
RUN go get github.com/nsf/gocode
|
||||
RUN go get github.com/bradfitz/goimports
|
||||
|
||||
ADD . /go/src/github.com/b3log/wide
|
||||
WORKDIR /go/src/github.com/b3log/wide
|
||||
RUN go get
|
||||
RUN go build
|
||||
|
||||
RUN cp -r . /root/wide
|
||||
WORKDIR /root/wide
|
||||
RUN rm -rf /go/pkg /go/src
|
||||
RUN mv ./hello /go/src/hello
|
||||
RUN ./docker.sh
|
||||
|
||||
ENV GOROOT /usr/src/go
|
||||
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Make docker image.
|
||||
|
||||
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
|
Loading…
Reference in New Issue