In the following release `neofs-cli` will be used to directly manage NeoFS Node. All required definitions and interfaces are also moving from `neofs-api` to `neofs-node` repository, so it's more convinient to have `neofs-cli` here. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
21 lines
400 B
Docker
21 lines
400 B
Docker
FROM golang:1.14-alpine as basebuilder
|
|
RUN apk add --update make bash
|
|
|
|
FROM basebuilder as builder
|
|
ARG BUILD=now
|
|
ARG VERSION=dev
|
|
ARG REPO=repository
|
|
WORKDIR /src
|
|
COPY . /src
|
|
|
|
RUN make bin/neofs-cli
|
|
|
|
# Executable image
|
|
FROM scratch AS neofs-cli
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /src/bin/neofs-cli /bin/neofs-cli
|
|
|
|
CMD ["neofs-cli"]
|