Evgenii Stratonikov
ed13387c0e
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 2m42s
DCO action / DCO (pull_request) Successful in 2m54s
Tests and linters / Tests (pull_request) Successful in 4m10s
Build / Build Components (pull_request) Successful in 4m46s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m45s
Vulncheck / Vulncheck (pull_request) Successful in 4m45s
Tests and linters / gopls check (pull_request) Successful in 4m48s
Tests and linters / Lint (pull_request) Successful in 5m7s
Tests and linters / Staticcheck (pull_request) Successful in 5m42s
Tests and linters / Tests with -race (pull_request) Successful in 7m55s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
19 lines
366 B
Text
19 lines
366 B
Text
FROM golang:1.23 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"]
|