3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-06 13:37:28 +02:00
pbot/Dockerfile

22 lines
632 B
Docker

FROM perl:5.34
# Install system dependencies.
RUN apt-get update && apt-get install -y cpanminus wamerican
# Install pbot and its own dependencies.
# FIXME: Replace nitrix with pragma-.
RUN cd /opt && git clone --recursive https://github.com/nitrix/pbot
RUN cd /opt/pbot && cpanm -n --installdeps . --with-all-features --without-feature=compiler_vm_win32
# Mount point to persist the bot's data.
RUN mkdir /mnt/persistent
# Prefer a non-root user to run the bot.
RUN useradd -ms /bin/bash pbot
USER pbot
# Just in case files are created in the working directory.
WORKDIR /home/pbot
# Executable.
ENTRYPOINT /opt/pbot/bin/pbot