# Dockerfile
FROM ubuntu:noble

RUN apt-get update && \
    apt-get install -y libgtk-3-dev debhelper dh-golang golang-go devscripts git

WORKDIR /workspace/provd

# Configure Git to recognize /workspace as a safe directory
RUN git config --global --add safe.directory /workspace

CMD ["bash", "-c", "debuild -i -us -uc && mv ../provd_*.deb ../provd.deb"]

