14 lines
311 B
Docker
14 lines
311 B
Docker
FROM xena/go-mini:1.9.3
|
|
|
|
ENV CGO_ENABLED=0
|
|
ENV PATH=$PATH:/root/go/bin
|
|
|
|
RUN apk add --no-cache git protobuf \
|
|
&& 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 \
|
|
&& rm -rf /root/go/pkg /root/go/bin
|