forked from mtusi2026/mtusi2026lab7
13 lines
486 B
Docker
13 lines
486 B
Docker
# Build the pinned community releases directly from official Go modules.
|
|
FROM golang:1.24.3-alpine AS builder
|
|
RUN apk add --no-cache git ca-certificates
|
|
ENV CGO_ENABLED=0 GOFLAGS=-p=4 GOMAXPROCS=4
|
|
RUN go install github.com/minio/minio@RELEASE.2025-04-22T22-12-26Z
|
|
RUN go install github.com/minio/mc@RELEASE.2025-04-16T18-13-26Z
|
|
|
|
FROM alpine:3.21.3
|
|
RUN apk add --no-cache ca-certificates
|
|
COPY --from=builder /go/bin/minio /go/bin/mc /usr/local/bin/
|
|
EXPOSE 9000 9001
|
|
ENTRYPOINT ["minio"]
|