diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..07e3af0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +src/Lavalink +start.* diff --git a/src/start.bat b/src/start.bat new file mode 100644 index 0000000..32eb9ce --- /dev/null +++ b/src/start.bat @@ -0,0 +1,6 @@ +@echo off +echo "Starting Lavalink server and waiting 20s..." +RUN "java -jar Lavalink/Lavalink.jar 1>/dev/null &" # showing only stderror +timeout /t 30 +echo "Done." +RUN "python -u ./main.py" diff --git a/src/start.sh b/src/start.sh new file mode 100644 index 0000000..304ee6f --- /dev/null +++ b/src/start.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +echo "Starting Lavalink server and waiting 20s..." +java -jar Lavalink/Lavalink.jar 1>/dev/null & # showing only stderror +sleep 20 +echo "Done." +python3 -u ./main.py