diff --git a/Dockerfile b/Dockerfile index f637962..1c68e2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,16 +8,12 @@ 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 - -# Setting up the directory +RUN pip3 install -U -r requirements.txt 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 a9a6233..52d7b42 100644 --- a/startup.sh +++ b/startup.sh @@ -1,15 +1,8 @@ -#!/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 "