DockerMC/.docker/server/start.sh
NorbiPeti 453720ddde
Download latest Paper build for the given MC version and start server in Docker
It took a while to properly mount the folder to both containers
Might be a bit overcomplicated but whatever
At the moment it creates the volume at /mcserver on the host
2022-06-25 19:51:52 +02:00

9 lines
150 B
Bash

#for file in *.jar; do
# echo $file
#done
ls -la
file=$(ls *.jar | tail -1)
echo Starting $file
mkdir -p $MC_SERVER
cd $MC_SERVER
java -jar ../$file