route/Dockerfile

14 lines
311 B
Docker
Raw Normal View History

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
ENV PATH=$PATH:/root/go/bin
2018-01-21 20:58:52 +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 \
&& 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