2024-07-23 09:15:20 +00:00
|
|
|
FROM golang:1.22 AS builder
|
2021-07-09 10:40:18 +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-adm
|
2021-07-09 10:40:18 +00:00
|
|
|
|
|
|
|
# Executable image
|
2023-01-09 07:04:58 +00:00
|
|
|
FROM alpine AS frostfs-adm
|
2021-07-09 10:40:18 +00:00
|
|
|
RUN apk add --no-cache bash
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
2023-01-09 07:04:58 +00:00
|
|
|
COPY --from=builder /src/bin/frostfs-adm /bin/frostfs-adm
|
2021-07-09 10:40:18 +00:00
|
|
|
|
2023-01-09 07:04:58 +00:00
|
|
|
CMD ["frostfs-adm"]
|