forked from mtusi2026/mtusi2026lab4
10 lines
462 B
Docker
10 lines
462 B
Docker
FROM golang:1.24.7-bookworm AS build
|
|
ENV CGO_ENABLED=0 GOTOOLCHAIN=auto
|
|
RUN go install github.com/minio/minio@RELEASE.2025-09-07T16-13-09Z
|
|
RUN go install github.com/minio/mc@RELEASE.2025-08-13T08-35-41Z
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /go/bin/minio /usr/local/bin/minio
|
|
COPY --from=build /go/bin/mc /usr/local/bin/mc
|
|
ENTRYPOINT ["minio"]
|