forked from TrueCloudLab/frostfs-node
f5dfaf307d
This is necessary in order to run the container in "limbo" (as a service) for general use, for example as service for neofs-dev-env with settings and environment variables. Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
21 lines
399 B
Text
21 lines
399 B
Text
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 alpine 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"]
|