mirror of https://github.com/mindoc-org/mindoc.git
18 lines
311 B
Docker
18 lines
311 B
Docker
FROM golang:1.8.1-alpine
|
|
|
|
|
|
RUN apk add --update bash git make gcc
|
|
|
|
ADD . /go/src/github.com/lifei6671/godoc
|
|
|
|
|
|
WORKDIR /go/src/github.com/lifei6671/godoc
|
|
|
|
RUN chmod +x start.sh
|
|
|
|
RUN go get -d ./... && \
|
|
go get github.com/mitchellh/gox && \
|
|
gox -os "windows linux darwin" -arch amd64
|
|
|
|
|
|
CMD ["./start.sh"] |