From e808f523ffc92322fbd91c83f2ee340a557f5b65 Mon Sep 17 00:00:00 2001 From: AsmSafone <77989182+AsmSafone@users.noreply.github.com> Date: Thu, 20 Jun 2024 03:43:55 +0600 Subject: [PATCH] .. --- Dockerfile | 8 ++++++-- startup.sh | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c68e2d..f637962 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,16 @@ RUN apt install git curl python3-pip ffmpeg -y COPY requirements.txt /requirements.txt # Installing Requirements -RUN cd / RUN pip3 install --upgrade pip -RUN pip3 install -U -r requirements.txt +RUN pip3 install -U -r /requirements.txt + +# Setting up the directory RUN mkdir /MusicPlayer WORKDIR /MusicPlayer + +# Copying the startup script COPY startup.sh /startup.sh +RUN chmod +x /startup.sh # Running Music Player Bot CMD ["/bin/bash", "/startup.sh"] diff --git a/startup.sh b/startup.sh index 52d7b42..a9a6233 100644 --- a/startup.sh +++ b/startup.sh @@ -1,8 +1,15 @@ +#!/bin/bash + echo ">> FETCHING UPSTREAM..." +if [ -d "/MusicPlayer" ]; then + rm -rf /MusicPlayer +fi git clone -b dev https://github.com/AsmSafone/MusicPlayer /MusicPlayer + echo ">> INSTALLING REQUIREMENTS..." cd /MusicPlayer pip3 install -U -r requirements.txt + echo ">> STARTING MUSIC PLAYER USERBOT..." clear echo "