#!/usr/bin/bash # Install dependencies dnf install -y unzip # Download and extract packer wget -O /app/packer.zip https://releases.hashicorp.com/packer/${PACKAGE_VERSION}/packer_${PACKAGE_VERSION}_linux_amd64.zip unzip packer.zip # Build the RPM nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm