This commit is contained in:
Liang Ding 2014-11-19 13:31:17 +08:00
parent 331e7d2fc4
commit 21324808d2
2 changed files with 19 additions and 2 deletions

View File

@ -6,12 +6,15 @@ 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 mv . /wide
WORKDIR /wide
RUN rm -rf /go/bin /go/pkg /go/src
RUN mv ./hello /go/src/
ENV GOROOT /usr/src/go
EXPOSE 7070

14
hello/main.go Normal file
View File

@ -0,0 +1,14 @@
package main
import (
"fmt"
"time"
)
func main() {
for {
fmt.Println("Hello, 世界")
time.Sleep(time.Second)
}
}