3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-06 05:27:26 +02:00
pbot/Dockerfile
2024-03-08 20:28:31 -05:00

19 lines
559 B
Docker

FROM perl:5.34
# Install system dependencies.
RUN apt-get update && apt-get install -y make gcc clang 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
# Just in case files are created in the working directory.
WORKDIR /tmp
# Executable.
ENTRYPOINT /opt/pbot/bin/pbot