forked from TrueCloudLab/frostfs-http-gw
b2e7a2cb61
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
23 lines
444 B
Docker
23 lines
444 B
Docker
FROM golang:1.16-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/neofs-http-gw /bin/neofs-http-gw
|
|
|
|
ENTRYPOINT ["/bin/neofs-http-gw"]
|