mercy/Dockerfile

17 lines
487 B
Docker

FROM xena/alpine
RUN apk add go build-base # TODO: move to bottom RUN segment
ADD ./vendor /go/src/git.xeserv.us/xena/mercy/vendor
ADD ./internal /go/src/git.xeserv.us/xena/mercy/internal
ADD ./cmd /go/src/git.xeserv.us/xena/mercy/cmd
ENV GOPATH /go
ENV CGO_ENABLED 0
RUN mkdir -p /go/bin && cd /go/bin \
&& go build git.xeserv.us/xena/mercy/cmd/worker \
&& go build git.xeserv.us/xena/mercy/cmd/kronos \
&& go build git.xeserv.us/xena/mercy/cmd/mercyd
#&& apk del go build-base