Added make targets to build and push docker images
Usage: `make docker-image` to build the image `make docker-image-push` to build and push the image Signed-off-by: Mathias Kaufmann <me@stei.gr>
This commit is contained in:
parent
36e84da7b5
commit
eeb6782f0f
3 changed files with 18 additions and 3 deletions
|
@ -2,9 +2,9 @@ FROM golang:1.10 AS goircd-builder
|
|||
ARG PACKAGE=github.com/bbusse/goircd
|
||||
ENV PACKAGE=$PACKAGE
|
||||
|
||||
WORKDIR /go/src/github.com/bbusse/goircd/
|
||||
WORKDIR /go/src/$PACKAGE/
|
||||
|
||||
ADD . /go/src/github.com/bbusse/goircd/
|
||||
ADD . /go/src/$PACKAGE/
|
||||
|
||||
RUN export CGO_ENABLED=0 \
|
||||
&& go get $PACKAGE \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue