Skip to content

Commit

Permalink
Now we support heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
InukaAsith authored Mar 31, 2021
1 parent 34873c8 commit c82e24a
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,26 @@ RUN apt-get install -y\
megatools \
libfreetype6-dev \
procps \
imagemagick \
libmagic-dev \
policykit-1


RUN apt-get autoremove --purge
RUN pip3 install --upgrade pip setuptools
RUN pip3 install --upgrade pip
RUN if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
RUN if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
RUN rm -r /root/.cache
#RUN apt-get autoremove --purge
#RUN pip3 install --upgrade pip setuptools
#RUN pip3 install --upgrade pip
#RUN if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
#RUN if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
#RUN rm -r /root/.cache
RUN wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz && tar xzf cmake-2.8.3.tar.gz && cd cmake-2.8.3 && ./configure --prefix=/opt/cmake && make install
RUN axel https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && apt install -y ./google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb
RUN axel https://chromedriver.storage.googleapis.com/88.0.4324.96/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && chmod +x chromedriver && mv -f chromedriver /usr/bin/ && rm chromedriver_linux64.zip
RUN axel https://chromedriver.storage.googleapis.com/86.0.4240.22/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && chmod +x chromedriver && mv -f chromedriver /usr/bin/ && rm chromedriver_linux64.zip
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip && unzip opencv.zip && mv -f opencv-master /usr/bin/ && rm opencv.zip
RUN git clone https://github.com/DevsExpo/FridayUserbot /root/virtualuserbot
RUN mkdir /root/virtualuserbot/bin/
RUN mkdir /root/virtualuserbot/bin/megadown
WORKDIR /root/virtualuserbot/
RUN chmod +x /usr/local/bin/*
#RUN git clone https://github.com/KeinShin/Black-Lightning /root/userbot
RUN wget https://raw.githubusercontent.com/Inukaasith/virtualuserbot/master/virtualbotmain.py
RUN wget https://raw.githubusercontent.com/Inukaasith/virtualuserbot/master/requirements.txt
#RUN mkdir /root/userbot/bin/
#WORKDIR /root/userbot/
#RUN chmod +x /usr/local/bin/*
RUN pip3 install -r requirements.txt
CMD ["bash","start.sh"]
#CMD ["bash","boot_start.sh"]
CMD ["python3","virtualbotmain.py"]

0 comments on commit c82e24a

Please sign in to comment.