d87a5a89d6
Added dep dependency before image target, made `run make` without dep in dockerfile. Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
25 lines
504 B
Docker
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"]
|