This commit is contained in:
parent
331e7d2fc4
commit
21324808d2
|
@ -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
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
for {
|
||||
fmt.Println("Hello, 世界")
|
||||
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue