frostfs-s3-gw/Dockerfile
Angira Kekteeva d87a5a89d6 [#57] *: Fix docker builds
Added dep dependency before image target, made `run make` without dep
in dockerfile.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-24 15:07:08 +03:00

25 lines
504 B
Docker

FROM golang:1 as builder
WORKDIR /src
RUN set -x \
&& apt update \
&& apt install -y make
COPY . /src
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
ARG VERSION=dev
RUN set -x && make -o dep # run make without dep dependency
# Executable image
FROM scratch
WORKDIR /
COPY --from=builder /src/bin/neofs-s3-gw /bin/neofs-s3-gw
COPY --from=builder /src/bin/neofs-authmate /bin/neofs-authmate
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/bin/neofs-s3-gw"]