2018-01-21 14:57:51 +00:00
|
|
|
FROM xena/go-mini:1.9.2
|
|
|
|
|
2018-01-21 20:58:52 +00:00
|
|
|
ENV CGO_ENABLED=0
|
2018-01-22 07:26:56 +00:00
|
|
|
ENV PATH=$PATH:/root/go/bin
|
2018-01-21 20:58:52 +00:00
|
|
|
|
2018-01-22 07:26:56 +00:00
|
|
|
RUN apk add --no-cache git protobuf \
|
2018-01-21 14:57:51 +00:00
|
|
|
&& go download
|
|
|
|
|
|
|
|
COPY . /root/go/src/git.xeserv.us/xena/route
|
|
|
|
|
|
|
|
RUN cd /root/go/src/git.xeserv.us/xena/route \
|
2018-01-22 07:26:56 +00:00
|
|
|
&& go run ./cmd/mage/main.go -v tools generate build \
|
2018-01-21 20:58:52 +00:00
|
|
|
&& rm -rf /root/go/pkg /root/go/bin
|