mirror of
https://github.com/pragma-/pbot.git
synced 2025-07-06 13:37:28 +02:00
21 lines
594 B
Docker
21 lines
594 B
Docker
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
|