3
0
mirror of https://github.com/pragma-/pbot.git synced 2026-02-20 08:18:00 +01:00

So close.

This commit is contained in:
Alex Belanger 2024-03-12 02:18:02 -04:00
parent 6587771348
commit 9506b6d95c
No known key found for this signature in database
GPG Key ID: 31736D2B10A5F158

View File

@ -1,7 +1,7 @@
FROM perl:5.34
# Install system dependencies.
RUN apt-get update && apt-get install -y clang gcc clang g++ tcl ghc git cpanminus dos2unix policykit-1
RUN apt-get update && apt-get install -y clang gcc clang g++ tcl ghc git cpanminus dos2unix policykit-1 fortune-mod
# Need the sources.
COPY . /opt/pbot
@ -28,9 +28,13 @@ RUN sed -i -e "s/\"cid\" : 7,/\"cid\" : 2,/g" /opt/pbot/applets/pbot-vm/host/con
# Permissions on some folders.
RUN chmod 777 /opt/pbot/applets/pbot-vm/host/history
RUN chmod 777 /opt/pbot/applets/pbot-vm/host/bin
RUN touch /opt/pbot/applets/pbot-vm/host/log.txt
RUN chmod 666 /opt/pbot/applets/pbot-vm/host/log.txt
# Fortunes
RUN ln -s /usr/games/fortune /usr/bin/fortune
# Setup the guest.
RUN cd /opt/pbot/applets/pbot-vm && ./guest/bin/setup-guest