2016-04-11 08:38:59 +00:00
|
|
|
FROM golang:1.6-alpine
|
2016-03-27 12:20:57 +00:00
|
|
|
|
|
|
|
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
|
|
|
2016-04-11 08:38:59 +00:00
|
|
|
RUN apk --update add git
|
2016-03-27 12:20:57 +00:00
|
|
|
RUN mkdir -p /tmp/build
|
|
|
|
Add build.tar.gz /tmp/build/
|
|
|
|
WORKDIR /tmp/build
|
2016-04-11 06:10:46 +00:00
|
|
|
RUN go get -v -d
|
2016-04-22 15:01:01 +00:00
|
|
|
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/gorush gorush.go
|
2016-03-27 12:20:57 +00:00
|
|
|
|
2016-04-13 07:22:04 +00:00
|
|
|
CMD tar -C bin -czf - gorush
|