FROM ubuntu:24.04

ENV DEBIAN_FRONTEND=noninteractive

# hadolint ignore=DL3008,DL3028
RUN apt-get update && \
	apt-get -y --no-install-recommends install \
		ruby \
		ruby-dev \
		rubygems \
		squashfs-tools \
		build-essential \
		git \
		wget \
		rpm \
		gawk \
    curl \
    jq \
	&& apt-get clean \
	&& gem install fpm \
	&& rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*