2016-05-11 09:00:17 +00:00
|
|
|
FROM golang:1.6.2-alpine
|
2016-04-11 06:10:46 +00:00
|
|
|
|
|
|
|
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
|
|
|
2016-05-11 09:00:17 +00:00
|
|
|
RUN apk update \
|
|
|
|
&& apk add git make && rm -rf /var/cache/apk/*
|
|
|
|
|
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
|
2016-05-11 09:00:17 +00:00
|
|
|
RUN git clone https://github.com/appleboy/gorush.git $GOPATH/src/github.com/appleboy/gorush/
|
2016-05-04 07:02:54 +00:00
|
|
|
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
|