images/factorio/create.sh
2024-01-02 18:51:49 +02:00

8 lines
244 B
Bash

#!/bin/zsh
if [[ -z $VERSION ]] ;
then VERSION=$(\
curl https://factorio.com/api/latest-releases | \
jq -r .stable.headless\
);
fi;
docker build -t factorio:${VERSION} --build-arg VERSION=${VERSION} --label type=GAME .