2018-03-13 22:52:03 +00:00
|
|
|
FROM golang:1.10 AS goircd-builder
|
|
|
|
ARG PACKAGE=github.com/bbusse/goircd
|
|
|
|
ENV PACKAGE=$PACKAGE
|
|
|
|
|
2018-03-13 23:10:00 +00:00
|
|
|
WORKDIR /go/src/$PACKAGE/
|
2018-03-13 22:52:03 +00:00
|
|
|
|
2018-03-13 23:10:00 +00:00
|
|
|
ADD . /go/src/$PACKAGE/
|
2018-03-13 22:52:03 +00:00
|
|
|
|
|
|
|
RUN export CGO_ENABLED=0 \
|
|
|
|
&& go get $PACKAGE \
|
|
|
|
&& make -f GNUmakefile goircd \
|
|
|
|
&& mv goircd /go/bin/goircd
|
|
|
|
|
|
|
|
FROM alpine AS goircd
|
|
|
|
COPY --from=goircd-builder /go/bin/goircd /bin/goircd
|
2018-03-14 00:08:43 +00:00
|
|
|
ENTRYPOINT ["goircd"]
|