2016-04-11 06:10:46 +00:00
|
|
|
FROM golang:1.6
|
|
|
|
|
|
|
|
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
|
|
|
2016-05-04 07:02:54 +00:00
|
|
|
# install glide package management.
|
|
|
|
RUN go get github.com/Masterminds/glide && cd $GOPATH/src/github.com/Masterminds/glide && make install
|
|
|
|
RUN mkdir -p $GOPATH/src/github.com/appleboy/gorush
|
|
|
|
Add . $GOPATH/src/github.com/appleboy/gorush/
|
|
|
|
WORKDIR $GOPATH/src/github.com/appleboy/gorush
|
2016-05-03 12:39:24 +00:00
|
|
|
RUN sed -i"" -e "s/localhost/redis/g" config/config.yml
|
2016-05-03 14:38:29 +00:00
|
|
|
RUN sed -i"" -e "s/localhost/redis/g" gorush/status_test.go
|
2016-05-04 07:02:54 +00:00
|
|
|
RUN sed -i"" -e "s/localhost/redis/g" storage/redis/redis_test.go
|
|
|
|
RUN make bundle
|