2023-01-10 12:04:58 +03:00
|
|
|
FROM golang:1.18 as builder
|
2020-07-24 16:54:03 +03:00
|
|
|
ARG BUILD=now
|
|
|
|
ARG VERSION=dev
|
|
|
|
ARG REPO=repository
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
|
|
|
2023-01-09 10:04:58 +03:00
|
|
|
RUN make bin/frostfs-ir
|
2020-07-24 16:54:03 +03:00
|
|
|
|
|
|
|
# Executable image
|
2023-01-09 10:04:58 +03:00
|
|
|
FROM alpine AS frostfs-ir
|
2021-01-23 20:08:55 +03:00
|
|
|
RUN apk add --no-cache bash
|
2020-07-24 16:54:03 +03:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
2023-01-09 10:04:58 +03:00
|
|
|
COPY --from=builder /src/bin/frostfs-ir /bin/frostfs-ir
|
2020-07-24 16:54:03 +03:00
|
|
|
|
2023-01-09 10:04:58 +03:00
|
|
|
CMD ["frostfs-ir"]
|