Added Dockerfile
Signed-off-by: Mathias Kaufmann <me@stei.gr>
This commit is contained in:
parent
06d17fe26b
commit
36e84da7b5
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
**/*
|
||||||
|
!.git/
|
||||||
|
!*.go
|
||||||
|
!GNUmakefile
|
||||||
|
!common.mk
|
||||||
|
!Dockerfile
|
||||||
|
!.dockerignore
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM golang:1.10 AS goircd-builder
|
||||||
|
ARG PACKAGE=github.com/bbusse/goircd
|
||||||
|
ENV PACKAGE=$PACKAGE
|
||||||
|
|
||||||
|
WORKDIR /go/src/github.com/bbusse/goircd/
|
||||||
|
|
||||||
|
ADD . /go/src/github.com/bbusse/goircd/
|
||||||
|
|
||||||
|
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
|
||||||
|
ENTRYPOINT ["sh","-c"]
|
||||||
|
CMD ["exec goircd"]
|
Loading…
Reference in New Issue
Block a user