fix build command.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-12-07 17:00:22 +08:00
parent 2c1c98e54c
commit 10cbf58b7d
3 changed files with 4 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ ENV VERSION #VERSION#
RUN mkdir -p $GOPATH/src/github.com/appleboy/gorush
Add build.tar.gz $GOPATH/src/github.com/appleboy/gorush/
WORKDIR $GOPATH/src/github.com/appleboy/gorush
RUN make install
RUN CGO_ENABLED=0 make build_static
RUN make dep_install
RUN CGO_ENABLED=0 make build
CMD tar -C bin -czf - gorush