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

Adding Dockerfile.

This commit is contained in:
Alex Belanger 2024-03-08 20:24:42 -05:00
parent fa29212bc3
commit 22d5823e9c
No known key found for this signature in database
GPG Key ID: 31736D2B10A5F158

20
Dockerfile Normal file
View File

@ -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