mirror of https://github.com/mindoc-org/mindoc.git
parent
3aa32a3abb
commit
e457408126
|
@ -12,7 +12,7 @@ RUN chmod +x start.sh
|
||||||
|
|
||||||
RUN go get -d ./... && \
|
RUN go get -d ./... && \
|
||||||
go get github.com/mitchellh/gox && \
|
go get github.com/mitchellh/gox && \
|
||||||
gox
|
gox -os "windows linux darwin" -arch amd64
|
||||||
|
|
||||||
|
|
||||||
CMD ["./start.sh"]
|
CMD ["./start.sh"]
|
7
start.sh
7
start.sh
|
@ -3,11 +3,6 @@ set -e
|
||||||
|
|
||||||
cd /go/src/github.com/lifei6671/godoc/
|
cd /go/src/github.com/lifei6671/godoc/
|
||||||
|
|
||||||
goFile="godoc-linux-amd64"
|
|
||||||
|
|
||||||
|
|
||||||
chmod +x $goFile
|
|
||||||
|
|
||||||
if [ ! -f "conf/app.conf" ] ; then
|
if [ ! -f "conf/app.conf" ] ; then
|
||||||
cp conf/app.conf.example conf/app.conf
|
cp conf/app.conf.example conf/app.conf
|
||||||
fi
|
fi
|
||||||
|
@ -37,4 +32,4 @@ if [ ! -z $HTTP_PORT] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
/go/src/github.com/lifei6671/godoc/godoc-linux-amd64
|
/go/src/github.com/lifei6671/godoc/godoc_linux_amd64
|
Loading…
Reference in New Issue