How to host a discord bot with Docker? (pycord)

Viewed 24

I want to host my discord bot that uses pycord with Docker. I searched online but cannot get any results.This is my file structure

this is my docker file:

FROM python:3.10-slim-buster
WORKDIR /bot
COPY requirements.txt /bot/
RUN pip3 install -r requirements.txt
COPY . /bot
CMD python3 botcmds.py

It's in my docker repository: Click Here

0 Answers
Related