From 22d5823e9cbb4c7cebd6b6b8ef42d6cf77e9d795 Mon Sep 17 00:00:00 2001 From: Alex Belanger Date: Fri, 8 Mar 2024 20:24:42 -0500 Subject: [PATCH] Adding Dockerfile. --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..e2659ccb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM perl:5.34 + +# Install system dependencies. +RUN apt-get update && apt-get install -y make gcc clang cpanminus dos2unix wamerican + +# Install pbot and its own dependencies. +RUN cd /opt && git clone --recursive https://github.com/pragma-/pbot +RUN cd /opt/pbot && cpanm -n --installdeps . --with-all-features --without-feature=compiler_vm_win32 + +# HACK: Missing from the cpanfile. +RUN cpanm Import::Into + +# Mount point for to persist the bot's data. +RUN mkdir /mnt/persistent + +# Just in case files are created in the working directory. +WORKDIR /tmp + +# Executable. +ENTRYPOINT /opt/pbot/bin/pbot