Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
AsmSafone committed Jun 19, 2024
1 parent d2b233d commit e808f52
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 7 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -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 "
Expand Down

0 comments on commit e808f52

Please sign in to comment.