This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
frostfs-rest-gw/Dockerfile
Denis Kirillov d48a7b6f66 [#3] Use owner id to auth
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2022-06-10 16:28:05 +03:00

26 lines
449 B
Docker

FROM golang:1.17 as basebuilder
RUN set -x \
&& apt-get update \
&& apt-get install -y make jq
FROM basebuilder as builder
ENV GOGC off
ENV CGO_ENABLED 0
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-rest-gw /bin/neofs-rest-gw
ENTRYPOINT ["/bin/neofs-rest-gw"]