17 lines
667 B
Docker
17 lines
667 B
Docker
FROM golang:1.6.2-alpine
|
|
|
|
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
|
|
RUN apk update \
|
|
&& apk add git make && rm -rf /var/cache/apk/*
|
|
|
|
# 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
|
|
RUN git clone https://github.com/appleboy/gorush.git $GOPATH/src/github.com/appleboy/gorush/
|
|
WORKDIR $GOPATH/src/github.com/appleboy/gorush
|
|
RUN sed -i"" -e "s/localhost/redis/g" config/config.yml
|
|
RUN sed -i"" -e "s/localhost/redis/g" gorush/status_test.go
|
|
RUN sed -i"" -e "s/localhost/redis/g" storage/redis/redis_test.go
|
|
RUN make bundle
|