Files
mtusi2026lab7/infra/Dockerfile.mc
T
SashaKirupina 7fb93b31ba
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР 7 — БПИ2304 — Кирюпина — на 3
2026-11-28 00:31:13 +03:00

11 lines
533 B
Mason

FROM golang:1.24.3-alpine AS build
RUN apk add --no-cache git || apk add --no-cache git || apk add --no-cache git
RUN git clone --depth 1 --branch RELEASE.2025-04-16T18-13-26Z https://github.com/minio/mc.git /src
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build for attempt in 1 2 3 4 5; do CGO_ENABLED=0 go build -trimpath -o /mc . && exit 0; done; exit 1
FROM alpine:3.22.1
RUN apk add --no-cache ca-certificates curl
COPY --from=build /mc /usr/local/bin/mc
ENTRYPOINT ["mc"]