frostfs-s3-gw/Dockerfile

26 lines
504 B
Text
Raw Normal View History

2020-07-03 15:08:57 +00:00
FROM golang:1 as builder
2020-07-03 15:08:57 +00:00
WORKDIR /src
RUN set -x \
&& apt update \
&& apt install -y make
COPY . /src
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
2020-07-03 15:08:57 +00:00
ARG VERSION=dev
RUN set -x && make -o dep # run make without dep dependency
2020-07-03 15:08:57 +00:00
# Executable image
FROM scratch
2020-07-03 15:08:57 +00:00
WORKDIR /
COPY --from=builder /src/bin/neofs-s3-gw /bin/neofs-s3-gw
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/
ENTRYPOINT ["/bin/neofs-s3-gw"]