10 lines
304 B
Docker
10 lines
304 B
Docker
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"]
|