2022-07-05 14:19:09 +03:00
|
|
|
FROM golang:1.17 as builder
|
2020-07-14 14:33:52 +03:00
|
|
|
|
2022-07-05 14:19:09 +03:00
|
|
|
ARG BUILD=now
|
2021-05-24 14:24:01 +03:00
|
|
|
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
|
2020-07-03 18:08:57 +03:00
|
|
|
ARG VERSION=dev
|
2020-07-03 15:03:06 +03:00
|
|
|
|
2022-07-05 14:19:09 +03:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
|
|
|
|
|
|
RUN make
|
2020-07-03 15:03:06 +03:00
|
|
|
|
2020-07-03 18:08:57 +03:00
|
|
|
# Executable image
|
2022-07-05 14:19:09 +03:00
|
|
|
FROM alpine AS neofs-s3-gw
|
|
|
|
RUN apk add --no-cache bash ca-certificates
|
2020-07-03 15:03:06 +03:00
|
|
|
|
2020-07-03 18:08:57 +03:00
|
|
|
WORKDIR /
|
2020-07-03 15:03:06 +03:00
|
|
|
|
2021-05-13 22:08:33 +03:00
|
|
|
COPY --from=builder /src/bin/neofs-s3-gw /bin/neofs-s3-gw
|
2022-06-28 22:12:39 +04:00
|
|
|
COPY --from=builder /src/bin/neofs-s3-authmate /bin/neofs-s3-authmate
|
2020-07-03 15:03:06 +03:00
|
|
|
|
2021-05-13 22:08:33 +03:00
|
|
|
ENTRYPOINT ["/bin/neofs-s3-gw"]
|