FROM python:3.10.6-slim

# install dependencies for mysqlclient
# RUN apt-get update && apt-get -y upgrade && apt-get -y install python3-dev default-libmysqlclient-dev build-essential

RUN pip install --upgrade pip

WORKDIR /home

COPY requirements.txt requirements.txt

COPY config.py config.py
COPY dakiny_bot.py dakiny_bot.py
COPY utils.py utils.py

COPY bot_messages bot_messages/
COPY classes classes/
COPY cogs cogs/
COPY database_setup database_setup/

RUN pip install -r requirements.txt

# remove build deps that aren't needed to run
# RUN apt-get -y remove python3-dev build-essential && apt-get -y autoremove

CMD ["python3", "-u", "./dakiny_bot.py"]