Marina Biryukova
7d47e88e36
All checks were successful
/ DCO (pull_request) Successful in 1m0s
/ Vulncheck (pull_request) Successful in 1m22s
/ Lint (pull_request) Successful in 8m22s
/ Tests (1.20) (pull_request) Successful in 1m53s
/ Tests (1.21) (pull_request) Successful in 1m43s
/ Builds (1.20) (pull_request) Successful in 1m58s
/ Builds (1.21) (pull_request) Successful in 9m1s
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
23 lines
450 B
Docker
23 lines
450 B
Docker
FROM golang:1.21-alpine as basebuilder
|
|
RUN apk add --update make bash ca-certificates
|
|
|
|
FROM basebuilder as builder
|
|
ENV GOGC off
|
|
ENV CGO_ENABLED 0
|
|
ARG BUILD=now
|
|
ARG VERSION=dev
|
|
ARG REPO=repository
|
|
WORKDIR /src
|
|
COPY . /src
|
|
|
|
RUN make
|
|
|
|
# Executable image
|
|
FROM scratch
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /src/bin/frostfs-http-gw /bin/frostfs-http-gw
|
|
|
|
ENTRYPOINT ["/bin/frostfs-http-gw"]
|