2021-09-10 10:54:39 +00:00
|
|
|
FROM python:3.9.7-slim-buster
|
2021-09-09 01:18:24 +00:00
|
|
|
|
2021-09-10 10:54:39 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
|
|
apt-get install -y nodejs \
|
|
|
|
npm
|
2021-09-10 13:07:29 +00:00
|
|
|
RUN apt-get install npm -y
|
2021-09-10 10:54:39 +00:00
|
|
|
RUN apt-get install git curl python3-pip ffmpeg -y
|
2021-09-09 02:36:32 +00:00
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
|
|
|
RUN apt-get install -y nodejs
|
2021-09-10 06:24:13 +00:00
|
|
|
RUN npm install -g npm@7.22.0
|
2021-09-09 02:36:32 +00:00
|
|
|
RUN npm i -g npm
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
COPY . /py
|
|
|
|
WORKDIR /py
|
|
|
|
|
2021-09-09 02:36:32 +00:00
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
RUN pip3 install -U -r requirements.txt
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
CMD python3 -m bot
|