wide/Dockerfile

20 lines
407 B
Docker
Raw Normal View History

2014-11-18 07:01:17 +03:00
FROM golang:latest
2014-11-18 08:41:24 +03:00
MAINTAINER Liang Ding <dl88250@gmail.com>
2014-11-18 07:01:17 +03:00
2014-11-18 07:46:04 +03:00
RUN go get github.com/88250/ide_stub
RUN go get github.com/nsf/gocode
2014-11-18 08:16:13 +03:00
RUN go get github.com/bradfitz/goimports
2014-11-18 07:46:04 +03:00
2014-11-18 07:01:17 +03:00
ADD . /go/src/github.com/b3log/wide
WORKDIR /go/src/github.com/b3log/wide
RUN go get
RUN go build
2014-11-19 08:57:58 +03:00
RUN cp -r . /root/wide
2014-11-19 08:37:11 +03:00
WORKDIR /root/wide
2014-11-19 10:08:20 +03:00
RUN rm -rf /go/pkg /go/src
RUN mv ./hello /go/src/hello
2014-11-19 08:31:17 +03:00
2014-11-18 07:01:17 +03:00
ENV GOROOT /usr/src/go
EXPOSE 7070