images/minecraft/paper/create.sh

8 lines
244 B
Bash
Executable File

#!/bin/sh
if [[ -z $VERSION ]] ;
then
VERSION=$(curl https://api.papermc.io/v2/projects/paper | jq -r .versions\[-1\]);
fi;
docker build -t "minecraft:paper-$VERSION" . --build-arg VERSION=$VERSION --label type=GAME
echo version=$VERSION