Интернет-реклама
- 1 ответ
- 0 вопросов
0
Вклад в тег
FROM ubuntu:latest
WORKDIR /discord-bot
RUN apt update && apt upgrade && \
apt install software-properties-common -y && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt update && \
apt install python3.10 -y && \
apt install python3.10-dev -y && \
apt install python3-pip -y && \
apt install python3.10-venv -y && \
apt-get install mysql-server -y && \
apt-get install libmysqlclient-dev -y && \
apt install libopus-dev -y && apt-get install libopus0 -y
RUN mkdir discord_bot && cd discord_bot && \
python3 -m venv discord-env && \
. ./discord-env/bin/activate
RUN pip3 install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD [ "python3", "bot_example.py" ]
import disnake
disnake.opus.load_opus("libopus.so")