2024-08-21 09:47:18 +00:00
|
|
|
FROM golang:1.22 AS builder
|
2020-07-14 11:33:52 +00:00
|
|
|
|
2022-07-05 11:19:09 +00:00
|
|
|
ARG BUILD=now
|
2023-03-07 14:38:08 +00:00
|
|
|
ARG REPO=git.frostfs.info/TrueCloudLab/frostfs-s3-gw
|
2020-07-03 15:08:57 +00:00
|
|
|
ARG VERSION=dev
|
2024-07-12 12:31:43 +00:00
|
|
|
ARG GOFLAGS=""
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2022-07-05 11:19:09 +00:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
|
|
|
2024-07-12 12:31:43 +00:00
|
|
|
RUN make GOFLAGS=${GOFLAGS}
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-03 15:08:57 +00:00
|
|
|
# Executable image
|
2022-12-15 14:08:25 +00:00
|
|
|
FROM alpine AS frostfs-s3-gw
|
2022-07-05 11:19:09 +00:00
|
|
|
RUN apk add --no-cache bash ca-certificates
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-03 15:08:57 +00:00
|
|
|
WORKDIR /
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2022-12-15 14:08:25 +00:00
|
|
|
COPY --from=builder /src/bin/frostfs-s3-gw /bin/frostfs-s3-gw
|
|
|
|
COPY --from=builder /src/bin/frostfs-s3-authmate /bin/frostfs-s3-authmate
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2022-12-15 14:08:25 +00:00
|
|
|
ENTRYPOINT ["/bin/frostfs-s3-gw"]
|