factorio-docker/build.sh
Florian Kinder 605ca74c0e
Add travis ci, linter, merge shellcheck, fix some issues (#241)
* Quote all vars, remove useless echo/sub-shell, add shebands, fail on unset vars, enable pipefail, formatting

* Add CI including linting via hadolint nad shellcheck

* Update all base images to tag 3.9

* Switch to maintainer labels

* Quote vars

* Remove commented code

* Ignore if the folder exists
2019-05-02 17:28:20 +02:00

13 lines
202 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
if [ -z "$1" ] ; then
echo "Usage: ./build.sh \$VERSION"
else
VERSION="$1"
fi
cd "$VERSION" || exit
docker build . -t "factoriotools/docker_factorio_server:$VERSION"