chore: switch to Alpine base with jq for MinIO addon

This commit is contained in:
2025-05-06 01:30:23 +02:00
parent 5933c1786f
commit a224907328
5 changed files with 31 additions and 23 deletions

View File

@@ -1,19 +1,19 @@
FROM debian:stable-slim
FROM alpine:3.18
LABEL io.hass.name="MinIO"
LABEL io.hass.description="S3-compatible object storage for HA"
LABEL io.hass.arch="amd64|aarch64"
LABEL io.hass.type="addon"
LABEL io.hass.version="1.0.63"
LABEL io.hass.version="1.0.64"
# Install curl and jq then download MinIO binary
# Install curl, jq and ca-certificates
RUN apk add --no-cache bash curl jq ca-certificates
# Install the latest version of MinIO
# https://min.io/download#/linux
# https://docs.min.io/docs/minio-server-quickstart-guide.html
RUN apt update && \
apt install -y --no-install-recommends curl jq && \
rm -rf /var/lib/apt/lists/* && \
curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio \
-o /usr/local/bin/minio && \
RUN curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio \
-o /usr/local/bin/minio && \
chmod +x /usr/local/bin/minio
# Copy the script into the container