mirror of
https://github.com/pragma-/pbot.git
synced 2025-12-13 04:07:27 +01:00
Non-root user.
This commit is contained in:
parent
46b131ef74
commit
cfe820933b
@ -11,8 +11,12 @@ RUN cd /opt/pbot && cpanm -n --installdeps . --with-all-features --without-featu
|
|||||||
# Mount point to persist the bot's data.
|
# Mount point to persist the bot's data.
|
||||||
RUN mkdir /mnt/persistent
|
RUN mkdir /mnt/persistent
|
||||||
|
|
||||||
|
# Prefer a non-root user to run the bot.
|
||||||
|
RUN useradd -ms /bin/bash pbot
|
||||||
|
USER pbot
|
||||||
|
|
||||||
# Just in case files are created in the working directory.
|
# Just in case files are created in the working directory.
|
||||||
WORKDIR /tmp
|
WORKDIR /home/pbot
|
||||||
|
|
||||||
# Executable.
|
# Executable.
|
||||||
ENTRYPOINT /opt/pbot/bin/pbot
|
ENTRYPOINT /opt/pbot/bin/pbot
|
||||||
Loading…
x
Reference in New Issue
Block a user