trying an start.sh file
This commit is contained in:
parent
74dda53644
commit
ad3ecc7e5f
2 changed files with 8 additions and 1 deletions
|
@ -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
6
src/start.sh
Executable 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
|
Reference in a new issue