forked from mtusi2026/mtusi2026lab4
ЛР 4 — БВТ2303 — Брезгунова — на 5
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
FROM golang:1.24.2-bookworm AS server-build
|
||||
RUN git clone --depth 1 --branch RELEASE.2025-04-22T22-12-26Z https://github.com/minio/minio.git /source
|
||||
WORKDIR /source
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="$(go run buildscripts/gen-ldflags.go)" -o /out/minio .
|
||||
|
||||
FROM golang:1.24.2-bookworm AS client-build
|
||||
RUN git clone --depth 1 --branch RELEASE.2025-04-16T18-13-26Z https://github.com/minio/mc.git /source
|
||||
WORKDIR /source
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="$(go run buildscripts/gen-ldflags.go)" -o /out/mc .
|
||||
|
||||
FROM python:3.12.11-slim-bookworm AS server
|
||||
COPY --from=server-build /out/minio /usr/local/bin/minio
|
||||
LABEL org.opencontainers.image.source="https://github.com/minio/minio" org.opencontainers.image.version="RELEASE.2025-04-22T22-12-26Z"
|
||||
ENTRYPOINT ["minio"]
|
||||
|
||||
FROM python:3.12.11-slim-bookworm AS client
|
||||
COPY --from=client-build /out/mc /usr/local/bin/mc
|
||||
LABEL org.opencontainers.image.source="https://github.com/minio/mc" org.opencontainers.image.version="RELEASE.2025-04-16T18-13-26Z"
|
||||
ENTRYPOINT ["mc"]
|
||||
Reference in New Issue
Block a user