diff --git a/Dockerfile b/Dockerfile index 4ee535d..25ececc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ENV FACTORIO_SERVER_VERSION 0.14.21 ENTRYPOINT ["/opt/defaults/start.sh"] EXPOSE 34197/udp -CMD ["--help"] +CMD ["help"] ADD https://www.factorio.com/get-download/${FACTORIO_SERVER_VERSION}/headless/linux64 /tmp/factorio.tgz ADD . /opt/defaults diff --git a/start.sh b/start.sh index 865413d..19f7a45 100755 --- a/start.sh +++ b/start.sh @@ -28,6 +28,10 @@ case ${ACTION} in [ -e server-settings.json ] || cp /opt/defaults/server-settings.json server-settings.json exec ${BINARY} --server-settings server-settings.json --start-server ${MAP_FILE} ;; + "help") + echo "Usage: docker run quay.io/luzifer/factorio [init | create | start]" + echo + echo "Alternative: docker run quay.io/luzifer/factorio " *) exec ${BINARY} "$@" ;;