From 84be6af736c9685baf21443d0faa52231019f2c5 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 30 Sep 2018 13:15:30 +0200 Subject: [PATCH] use vendor/, if found --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1d00d4b..6dcbf96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ 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 ./... +WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/ +COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/ +RUN go build -v ./cmd/... FROM scratch WORKDIR /usr/bin/ COPY --from=builder /go/bin/panelcli /usr/bin/ COPY --from=builder /go/bin/userpanel /usr/bin/ -ENTRYPOINT ["./userpanel"] +ENTRYPOINT ["./userpanel"]