# Use a base Python image FROM registry.suse.com/bci/bci-base:15.7 RUN zypper ar -f http://download.opensuse.org/repositories/devel:/Factory:/git-workflow/15.7/devel:Factory:git-workflow.repo RUN zypper --gpg-auto-import-keys ref # Install any necessary dependencies for the bot # e.g., git, curl, etc. RUN zypper -n in git-core curl autogits-obs-staging-bot binutils COPY obs-staging-bot/entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh # Create a non-root user to run the bot RUN useradd -m -u 1001 bot USER 1001 # Set the entrypoint ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]