mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-11-24 08:47:04 +08:00
*
This commit is contained in:
@@ -12,7 +12,7 @@ RUN chmod +x start.sh
|
||||
|
||||
RUN go get -d ./... && \
|
||||
go get github.com/mitchellh/gox && \
|
||||
gox
|
||||
gox -os "windows linux darwin" -arch amd64
|
||||
|
||||
|
||||
CMD ["./start.sh"]
|
||||
7
start.sh
7
start.sh
@@ -3,11 +3,6 @@ set -e
|
||||
|
||||
cd /go/src/github.com/lifei6671/godoc/
|
||||
|
||||
goFile="godoc-linux-amd64"
|
||||
|
||||
|
||||
chmod +x $goFile
|
||||
|
||||
if [ ! -f "conf/app.conf" ] ; then
|
||||
cp conf/app.conf.example conf/app.conf
|
||||
fi
|
||||
@@ -37,4 +32,4 @@ if [ ! -z $HTTP_PORT] ; then
|
||||
fi
|
||||
|
||||
|
||||
/go/src/github.com/lifei6671/godoc/godoc-linux-amd64
|
||||
/go/src/github.com/lifei6671/godoc/godoc_linux_amd64
|
||||
Reference in New Issue
Block a user