frostfs-http-gw/Dockerfile

24 lines
450 B
Text
Raw Permalink Normal View History

FROM golang:1.21-alpine as basebuilder
RUN apk add --update make bash ca-certificates
2019-11-06 12:33:46 +00:00
FROM basebuilder as builder
2019-11-06 12:33:46 +00:00
ENV GOGC off
ENV CGO_ENABLED 0
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
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/
COPY --from=builder /src/bin/frostfs-http-gw /bin/frostfs-http-gw
ENTRYPOINT ["/bin/frostfs-http-gw"]