From 29e8ed29a46481e9373c089151021a3c3a59df91 Mon Sep 17 00:00:00 2001 From: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com> Date: Wed, 27 Oct 2021 19:46:18 +0530 Subject: [PATCH] updated docker image for faster builds --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5c0af54..eb0e51e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ -FROM debian:latest +FROM nikolaik/python-nodejs:python3.9-nodejs16 RUN apt update && apt upgrade -y -RUN apt install git curl python3-pip ffmpeg -y -RUN pip3 install -U pip -RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ - apt-get install -y nodejs && \ - npm i -g npm +RUN apt install ffmpeg -y + COPY requirements.txt /requirements.txt RUN cd / -RUN pip3 install -U -r requirements.txt +RUN pip3 install -U pip && pip3 install -U -r requirements.txt RUN mkdir /VCPlayerBot WORKDIR /VCPlayerBot COPY start.sh /start.sh -CMD ["/bin/bash", "/start.sh"] \ No newline at end of file +CMD ["/bin/bash", "/start.sh"]