frostfs-s3-gw/.docker/Dockerfile

23 lines
458 B
Text
Raw Normal View History

FROM golang:1.21 as builder
ARG BUILD=now
ARG REPO=git.frostfs.info/TrueCloudLab/frostfs-s3-gw
2020-07-03 15:08:57 +00:00
ARG VERSION=dev
ARG GOFLAGS=""
WORKDIR /src
COPY . /src
RUN make GOFLAGS=${GOFLAGS}
2020-07-03 15:08:57 +00:00
# Executable image
FROM alpine AS frostfs-s3-gw
RUN apk add --no-cache bash ca-certificates
2020-07-03 15:08:57 +00:00
WORKDIR /
COPY --from=builder /src/bin/frostfs-s3-gw /bin/frostfs-s3-gw
COPY --from=builder /src/bin/frostfs-s3-authmate /bin/frostfs-s3-authmate
ENTRYPOINT ["/bin/frostfs-s3-gw"]