ЛР 4 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-10-29 13:02:56 +03:00
parent ec540a1a72
commit b78cadb893
73 changed files with 2076 additions and 36 deletions
+19
View File
@@ -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"]