2022-03-18 10:42:43 +00:00
|
|
|
FROM golang:1.17 as builder
|
2021-01-13 13:07:01 +00:00
|
|
|
ARG BUILD=now
|
|
|
|
ARG VERSION=dev
|
|
|
|
ARG REPO=repository
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
|
|
|
2023-01-09 07:04:58 +00:00
|
|
|
RUN make bin/frostfs-node
|
2021-01-13 13:07:01 +00:00
|
|
|
|
|
|
|
# Executable image
|
2023-01-09 07:04:58 +00:00
|
|
|
FROM alpine AS frostfs-node
|
2021-01-23 17:08:55 +00:00
|
|
|
RUN apk add --no-cache bash
|
2021-01-13 13:07:01 +00:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
2023-01-09 07:04:58 +00:00
|
|
|
COPY --from=builder /src/bin/frostfs-node /bin/frostfs-node
|
2021-01-13 13:07:01 +00:00
|
|
|
COPY --from=builder /src/config/testnet/config.yml /config.yml
|
|
|
|
|
2023-01-09 07:04:58 +00:00
|
|
|
CMD ["frostfs-node", "--config", "/config.yml"]
|