trying an start.sh file

This commit is contained in:
Mylloon 2021-08-07 03:44:40 +02:00
parent 74dda53644
commit ad3ecc7e5f
2 changed files with 8 additions and 1 deletions

View file

@ -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"]

6
src/start.sh Executable file
View file

@ -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