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