mirror of
https://github.com/pragma-/pbot.git
synced 2025-07-06 13:37:28 +02:00
Adding Dockerfile.
This commit is contained in:
parent
fa29212bc3
commit
22d5823e9c
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user