forked from TrueCloudLab/frostfs-s3-gw
aaddc0a1f7
- Moving to Alpine as a base image - Fix dirty image build - Fix version format to match neofs-node Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
21 lines
401 B
Docker
21 lines
401 B
Docker
FROM golang:1.17 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"]
|