FROM debian:bookworm

RUN apt-get update \
&&  apt-get install -y \
      ruby \
      build-essential \
      rpm \
      tar \
      zip \
&&  gem install --no-document fpm -v 1.15.1

ADD --chmod=755 entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
