mirror of
https://github.com/BastilleBSD/templates.git
synced 2025-12-10 17:00:30 +01:00
* README cleanup * template migration * convert percona to new bastillefile format * convert gitlab to bastillefile format * convert php to bastillefile format --------- Co-authored-by: Barry McCormick <bmccormick@debianbeast.maildragon.com>
20 lines
526 B
Plaintext
20 lines
526 B
Plaintext
ARG MINECRAFT_MEMX="1024M"
|
|
ARG MINECRAFT_MEMS="1024M"
|
|
ARG MINECRAFT_ARGS=""
|
|
CONFIG set enforce_statfs=1;
|
|
CONFIG set allow.mount.fdescfs;
|
|
CONFIG set allow.mount.procfs;
|
|
RESTART
|
|
PKG dialog4ports tmux openjdk17
|
|
MOUNT /usr/ports usr/ports nullfs ro 0 0
|
|
CP etc /
|
|
CP var /
|
|
CMD make -C /usr/ports/games/minecraft-server install clean
|
|
CP usr /
|
|
SYSRC minecraft_enable=YES
|
|
SYSRC minecraft_memx=${MINECRAFT_MEMX}
|
|
SYSRC minecraft_mems=${MINECRAFT_MEMS}
|
|
SYSRC minecraft_args=${MINECRAFT_ARGS}
|
|
SERVICE minecraft restart
|
|
RDR tcp 25565 25565
|