This commit is contained in:
2026-11-26 23:34:55 +03:00
parent 20afc2c790
commit a25f357314
167 changed files with 33202 additions and 89 deletions
+21
View File
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1
# Local MinIO Client (mc) from the official GitHub release binary (pinned).
# Fallback when docker.io/minio/mc cannot be pulled.
FROM ubuntu:24.04 AS runtime
ARG MC_VERSION=RELEASE.2025-04-16T18-13-26Z
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl \
&& curl -fsSL -o /tmp/mc.bin \
"https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}" \
&& curl -fsSL -o /tmp/mc.sha256sum \
"https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}.sha256sum" \
&& expected="$(awk '{print $1}' /tmp/mc.sha256sum)" \
&& echo "${expected} /tmp/mc.bin" | sha256sum -c - \
&& install -m 0755 /tmp/mc.bin /usr/local/bin/mc \
&& rm -f /tmp/mc.bin /tmp/mc.sha256sum \
&& rm -rf /var/lib/apt/lists/*
USER 10001:10001
ENTRYPOINT ["mc"]
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
mkdir -p "$MC_CONFIG_DIR/certs/CAs"
cp /pki/ca.crt "$MC_CONFIG_DIR/certs/CAs/ca.crt"
exec /bin/sh "$@"