WORKDIR /bot
COPY requirements.txt /bot/
RUN pip install -r requirements.txt
COPY . /bot
CMD ["python", "-u", "main.py"]
For each command below, "$:" should not be included. I added it here to indicate the start of a command.
Server commands:
$: sudo apt update - updates your server
$: sudo apt -y upgrade - upgrades your server
$: sudo apt install -y python3-pip - installs python3 with pip