2024-08-16 09:56:38 +00:00
|
|
|
FROM golang:1.22-alpine AS basebuilder
|
2021-04-09 15:29:18 +00:00
|
|
|
RUN apk add --update make bash ca-certificates
|
2019-11-06 12:33:46 +00:00
|
|
|
|
2024-08-16 09:56:38 +00:00
|
|
|
FROM basebuilder AS builder
|
|
|
|
ENV GOGC=off
|
|
|
|
ENV CGO_ENABLED=0
|
2021-04-09 15:29:18 +00:00
|
|
|
ARG BUILD=now
|
|
|
|
ARG VERSION=dev
|
|
|
|
ARG REPO=repository
|
2020-04-15 08:17:58 +00:00
|
|
|
WORKDIR /src
|
2019-11-06 12:33:46 +00:00
|
|
|
COPY . /src
|
|
|
|
|
2021-04-09 15:29:18 +00:00
|
|
|
RUN make
|
2019-11-06 12:33:46 +00:00
|
|
|
|
|
|
|
# Executable image
|
2020-04-15 08:17:58 +00:00
|
|
|
FROM scratch
|
2019-11-06 12:33:46 +00:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
2022-12-16 08:45:27 +00:00
|
|
|
COPY --from=builder /src/bin/frostfs-http-gw /bin/frostfs-http-gw
|
2019-12-13 16:18:45 +00:00
|
|
|
|
2022-12-16 08:45:27 +00:00
|
|
|
ENTRYPOINT ["/bin/frostfs-http-gw"]
|