frostfs-s3-gw/.docker/Dockerfile

22 lines
401 B
Text
Raw Normal View History

FROM golang:1.17 as builder
ARG BUILD=now
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
2020-07-03 15:08:57 +00:00
ARG VERSION=dev
WORKDIR /src
COPY . /src
RUN make
2020-07-03 15:08:57 +00:00
# Executable image
FROM alpine AS neofs-s3-gw
RUN apk add --no-cache bash ca-certificates
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-s3-authmate /bin/neofs-s3-authmate
ENTRYPOINT ["/bin/neofs-s3-gw"]