From ad3ecc7e5f0df8785119ea1517f2e06a2698bf94 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 7 Aug 2021 03:44:40 +0200 Subject: [PATCH] trying an start.sh file --- Dockerfile | 3 ++- src/start.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 src/start.sh diff --git a/Dockerfile b/Dockerfile index cf3f77f..8d1e1bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ RUN mkdir -p /usr/share/man/man1 && \ COPY README.md . COPY src . -CMD [ "python", "-u", "./main.py" ] +# CMD ["python", "-u", "./main.py"] +CMD ["./start.sh"] diff --git a/src/start.sh b/src/start.sh new file mode 100755 index 0000000..b1803b0 --- /dev/null +++ b/src/start.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +echo "Starting Lavalink server and waiting 20s..." +java -jar Lavalink.jar 1>/dev/null & +sleep 20 +echo "Done." +python3 -u ./main.py