frostfs-node/Dockerfile.cli
Evgeniy Kulikov f5dfaf307d [#336] Use Alpine for cli instead of scratch
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>
2021-01-22 15:04:12 +03:00

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"]