This repository has been archived on 2025-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
docker-almalinux-buildrunner/Dockerfile
Ben Vincent 760b67b9e8
All checks were successful
Build / build (pull_request) Successful in 1m7s
feat: update buildrunner
- add nfpm package
- prepare for golang builds
- cleanup layers in docker
2024-11-30 23:46:03 +11:00

20 lines
641 B
Docker

# Start with the AlmaLinux 8.10 base image
FROM git.query.consul/unkin/almalinux8:latest
# Install nodejs:20 for actions
RUN dnf module enable -y nodejs:20 && \
dnf install -y nodejs
# Install build tools and dependencies for building RPMs
RUN dnf groupinstall -y 'Development Tools' && \
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip go
# Install nfpm using the RPM package
ARG NFPM_VERSION
ENV NFPM_VERSION=${NFPM_VERSION}
RUN dnf install -y https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm
# Cleanup
RUN dnf clean all && \
rm -rf /var/cache/dnf