frostfs-s3-gw/.docker/Dockerfile
Denis Kirillov 0bd7d4da2f [#694] Update go version to 1.19
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2022-08-30 15:54:33 +03:00

21 lines
401 B
Docker

FROM golang:1.19 as builder
ARG BUILD=now
ARG REPO=github.com/nspcc-dev/neofs-s3-gw
ARG VERSION=dev
WORKDIR /src
COPY . /src
RUN make
# Executable image
FROM alpine AS neofs-s3-gw
RUN apk add --no-cache bash ca-certificates
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"]