mirror of https://github.com/mindoc-org/mindoc.git
19 lines
321 B
Docker
19 lines
321 B
Docker
FROM golang:1.8.3-alpine3.6
|
|
|
|
|
|
RUN apk add --update bash git make gcc g++
|
|
|
|
ADD . /go/src/github.com/lifei6671/mindoc
|
|
|
|
|
|
WORKDIR /go/src/github.com/lifei6671/mindoc
|
|
|
|
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"]
|