frostfs-http-gw/.docker/Dockerfile
Denis Kirillov 5a87ee7625
All checks were successful
/ DCO (pull_request) Successful in 1m31s
/ Vulncheck (pull_request) Successful in 1m38s
/ Builds (1.21) (pull_request) Successful in 1m28s
/ Builds (1.22) (pull_request) Successful in 2m27s
/ Lint (pull_request) Successful in 3m34s
/ Tests (1.21) (pull_request) Successful in 2m13s
/ Tests (1.22) (pull_request) Successful in 2m5s
[#115] Fix ci build go version
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2024-06-05 15:28:06 +03:00

23 lines
450 B
Docker

FROM golang:1.22-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"]