frostfs-s3-gw/.docker/Dockerfile
Nikita Zinkevich a17c0d701b
All checks were successful
/ Vulncheck (pull_request) Successful in 1m9s
/ Builds (1.20) (pull_request) Successful in 1m29s
/ Builds (1.21) (pull_request) Successful in 1m27s
/ DCO (pull_request) Successful in 33s
/ Lint (pull_request) Successful in 1m32s
/ Tests (1.20) (pull_request) Successful in 1m39s
/ Tests (1.21) (pull_request) Successful in 1m37s
[#369] Add env GOFLAGS passing in Make targets
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
2024-08-01 14:29:29 +03:00

22 lines
458 B
Docker

FROM golang:1.21 as builder
ARG BUILD=now
ARG REPO=git.frostfs.info/TrueCloudLab/frostfs-s3-gw
ARG VERSION=dev
ARG GOFLAGS=""
WORKDIR /src
COPY . /src
RUN make GOFLAGS=${GOFLAGS}
# Executable image
FROM alpine AS frostfs-s3-gw
RUN apk add --no-cache bash ca-certificates
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"]