2024-06-05 11:00:01 +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
|
|
|
|
2021-04-09 15:29:18 +00:00
|
|
|
FROM basebuilder as builder
|
2019-11-06 12:33:46 +00:00
|
|
|
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"]
|