frostfs-node/Dockerfile.storage
Stanislav Bogatyrev 783ec72d56 build: Simplify Docker image build
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-04 12:17:09 +03:00

20 lines
334 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-node
# Executable image
FROM scratch AS neofs-node
WORKDIR /
COPY --from=builder /src/bin/neofs-node /bin/neofs-node
CMD ["neofs-node"]