From 4bc6c099773b60540d7f9ea9f660269b88e2565b Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 30 Sep 2018 00:54:03 +0200 Subject: [PATCH] add dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3709bc1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.11-alpine as builder +RUN apk --no-cache add git gcc musl-dev +WORKDIR /panel/ +COPY ./ /panel/ +RUN rm -rf /panel/vendor/ && go get ./... && CGO_ENABLED=0 GOOS=linux go install -v ./... + +FROM scratch +WORKDIR /usr/bin/ +COPY --from=builder /go/bin/panelcli /usr/bin/ +ENTRYPOINT ["./panelcli"]