route/Dockerfile

13 lines
245 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
RUN apk add git \
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-21 20:58:52 +00:00
&& go run ./cmd/mage/main.go build \
&& rm -rf /root/go/pkg /root/go/bin