代码拉取完成,页面将自动刷新
FROM dockerproxy.cn/golang:1.21-alpine as build
ARG TARGETARCH=amd64
ARG RELEASE
ENV GOPATH /go
ENV CGO_ENABLED 0
WORKDIR /app
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
# Install curl and minisign
RUN apk add -U --no-cache ca-certificates && \
apk add -U --no-cache curl
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn \
GOSUMDB=off \
GOARCH="${TARGETARCH}"
COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
COPY . .
RUN go mod download -x
RUN go mod tidy
RUN mkdir -p /opt/bin && chmod -R 777 /opt/bin
RUN go build -trimpath -tags kqueue -o /opt/bin
FROM dockerproxy.cn/alpine
LABEL name="MinIO" \
vendor="MinIO Inc <dev@min.io>" \
maintainer="MinIO Inc <dev@min.io>" \
version="${RELEASE}" \
release="${RELEASE}" \
summary="MinIO is a High Performance Object Storage, API compatible with Amazon S3 cloud storage service." \
description="MinIO object storage is fundamentally different. Designed for performance and the S3 API, it is 100% open-source. MinIO is ideal for large, private cloud environments with stringent security requirements and delivers mission-critical availability across a diverse range of workloads."
ENV MINIO_ACCESS_KEY_FILE=access_key \
MINIO_SECRET_KEY_FILE=secret_key \
MINIO_ROOT_USER_FILE=access_key \
MINIO_ROOT_PASSWORD_FILE=secret_key \
MINIO_KMS_SECRET_KEY_FILE=kms_master_key \
MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \
MINIO_CONFIG_ENV_FILE=config.env \
PATH=$PATH:/opt/bin
RUN mkdir -p /opt/bin && chmod -R 777 /opt/bin
COPY --from=build /usr/bin/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
COPY --from=build /opt/bin/minio /opt/bin/minio
RUN chmod +x /usr/bin/docker-entrypoint.sh
EXPOSE 9000
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
VOLUME ["/data"]
CMD ["minio"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。