Ekaterina Lebedeva
94f07b4778
All checks were successful
Build / Build Components (1.21) (pull_request) Successful in 2m14s
DCO action / DCO (pull_request) Successful in 2m42s
Build / Build Components (1.22) (pull_request) Successful in 3m49s
Vulncheck / Vulncheck (pull_request) Successful in 3m53s
Tests and linters / Staticcheck (pull_request) Successful in 5m2s
Tests and linters / gopls check (pull_request) Successful in 5m9s
Tests and linters / Lint (pull_request) Successful in 6m9s
Pre-commit hooks / Pre-commit (pull_request) Successful in 8m56s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m35s
Tests and linters / Tests (1.22) (pull_request) Successful in 9m47s
Tests and linters / Tests with -race (pull_request) Successful in 9m58s
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
19 lines
366 B
Text
19 lines
366 B
Text
FROM golang:1.22 AS builder
|
|
ARG BUILD=now
|
|
ARG VERSION=dev
|
|
ARG REPO=repository
|
|
WORKDIR /src
|
|
COPY . /src
|
|
|
|
RUN make bin/frostfs-cli
|
|
|
|
# Executable image
|
|
FROM alpine AS frostfs-cli
|
|
RUN apk add --no-cache bash
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /src/bin/frostfs-cli /bin/frostfs-cli
|
|
|
|
CMD ["frostfs-cli"]
|