# Start with the AlmaLinux 8.10 base image
FROM git.query.consul/unkin/almalinux8:latest

# Clean and update the repository cache
RUN dnf clean all && \
    dnf makecache

# Install nodejs:20 for actions
RUN dnf module enable -y nodejs:20 && \
    dnf install -y nodejs

# Install packages
RUN dnf install -y yum-utils && \
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
    dnf install -y docker-ce-cli make bash git unzip

# Cleanup
RUN dnf clean all && \
    rm -rf /var/cache/dnf
