2018-03-13 06:25:58 +03:00
|
|
|
FROM golang:latest
|
2018-03-12 07:20:52 +03:00
|
|
|
MAINTAINER Liang Ding <d@b3log.org>
|
2014-11-18 07:01:17 +03:00
|
|
|
|
2018-03-13 07:57:02 +03:00
|
|
|
ADD . /go/src/github.com/b3log/wide
|
2018-03-13 07:32:44 +03:00
|
|
|
ADD vendor/ /go/src/
|
2018-03-13 07:04:39 +03:00
|
|
|
RUN go install github.com/visualfc/gotools github.com/nsf/gocode github.com/bradfitz/goimports
|
2015-08-05 06:46:44 +03:00
|
|
|
|
2018-03-13 06:25:58 +03:00
|
|
|
RUN useradd wide && useradd runner
|
2014-11-19 11:13:46 +03:00
|
|
|
|
2018-03-13 07:57:02 +03:00
|
|
|
WORKDIR /go/src/github.com/b3log/wide
|
2015-08-05 08:16:53 +03:00
|
|
|
RUN go build -v
|
2014-12-13 17:03:55 +03:00
|
|
|
|
2017-01-23 11:42:32 +03:00
|
|
|
EXPOSE 7070
|