Skip to content
Snippets Groups Projects
Commit a27d0015 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

Merge branch 'L2SS-2025-download-mcli-from-docker' into 'master'

L2SS-2025: Install mcli from docker instead of apt

Closes L2SS-2025

See merge request !2
parents bb6b6d5b bc025f62
No related branches found
No related tags found
1 merge request!2L2SS-2025: Install mcli from docker instead of apt
Pipeline #126774 passed
FROM debian:bookworm FROM minio/mc as mcli
FROM python:3-slim
USER root COPY --from=mcli /usr/bin/mc /usr/bin/mcli
COPY --from=mcli /licenses/CREDITS /licenses/CREDITS
RUN --mount=type=cache,target=/var/cache/apt apt update COPY --from=mcli /licenses/LICENSE /licenses/LICENSE
RUN --mount=type=cache,target=/var/cache/apt apt install -y python3 python3-pip wget
RUN --mount=type=cache,target=/tmp wget \
https://dl.min.io/client/mc/release/linux-amd64/mcli_20241008093726.0.0_amd64.deb -O /tmp/mcli.deb && \
dpkg -i /tmp/mcli.deb
ENV PIP_ROOT_USER_ACTION=ignore
COPY requirements.txt ./ COPY requirements.txt ./
RUN pip install -r requirements.txt --break-system-packages RUN pip install -r requirements.txt
COPY run.sh /run.sh COPY run.sh /run.sh
ENTRYPOINT ["/run.sh"] ENTRYPOINT ["/run.sh"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment