2020-07-03 15:08:57 +00:00
|
|
|
FROM golang:1 as builder
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-03 15:08:57 +00:00
|
|
|
WORKDIR /src
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-14 11:33:52 +00:00
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
2021-05-13 19:08:33 +00:00
|
|
|
&& apt install -y make
|
2020-07-14 11:33:52 +00:00
|
|
|
|
|
|
|
COPY . /src
|
|
|
|
|
2021-05-24 11:24:01 +00:00
|
|
|
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
|
2020-07-03 15:08:57 +00:00
|
|
|
ARG VERSION=dev
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2021-05-24 11:24:01 +00:00
|
|
|
RUN set -x && make -o dep # run make without dep dependency
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-03 15:08:57 +00:00
|
|
|
# Executable image
|
2020-07-14 11:33:52 +00:00
|
|
|
FROM scratch
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-03 15:08:57 +00:00
|
|
|
WORKDIR /
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2021-05-13 19:08:33 +00:00
|
|
|
COPY --from=builder /src/bin/neofs-s3-gw /bin/neofs-s3-gw
|
2021-05-24 11:24:01 +00:00
|
|
|
COPY --from=builder /src/bin/neofs-authmate /bin/neofs-authmate
|
2020-07-03 15:08:57 +00:00
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2021-05-13 19:08:33 +00:00
|
|
|
ENTRYPOINT ["/bin/neofs-s3-gw"]
|