FROM alpine:3.20

RUN apk add --no-cache curl bash openssl \
    && curl -fsSL -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc \
    && chmod +x /usr/local/bin/mc \
    && curl -fsSL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
    && chmod +x /usr/local/bin/kubectl \
    && adduser -D -u 1000 runner

USER runner
WORKDIR /home/runner

ENTRYPOINT ["/bin/bash"]
