From c1f0e9da3e981c9299be166bb7a5cd91e9172aa1 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 30 Sep 2018 13:47:55 +0200 Subject: [PATCH] correct binary installation --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6dcbf96..a7a873a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM golang:1.11-alpine as builder RUN apk --no-cache add git gcc musl-dev WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/ COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/ -RUN go build -v ./cmd/... +RUN CGO_ENABLED=0 GOOS=linux go install -v ./... -FROM scratch +FROM busybox WORKDIR /usr/bin/ COPY --from=builder /go/bin/panelcli /usr/bin/ COPY --from=builder /go/bin/userpanel /usr/bin/