FROM docker.io/library/debian:trixie

ENV DEBIAN_FRONTEND=noninteractive \
    # Persistent gradle cache
    GRADLE_USER_HOME=/workdir/.gradle

RUN apt-get update -yq && \
    apt-get upgrade -yq && \
    apt-get install -yq \
		           unzip \
		           default-jdk-headless \
                   make \
                   po-debconf \
                   build-essential \
                   debhelper-compat \
                   devscripts \
		           git-buildpackage \
                   postgresql \
                   sudo

WORKDIR /workdir

CMD ["bash", "/workdir/ci/ci.sh"]
