56d4410913
Changes: * replace `iotuil` elements with the ones from `os` package; * replace `os.Filemode` with `fs.FileMode`; * use `signal.NotifyContext` instead of `NewGracefulContext` (removed). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
21 lines
351 B
Text
21 lines
351 B
Text
FROM golang:1.16-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-ir
|
|
|
|
# Executable image
|
|
FROM alpine AS neofs-ir
|
|
RUN apk add --no-cache bash
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /src/bin/neofs-ir /bin/neofs-ir
|
|
|
|
CMD ["neofs-ir"]
|