Files
dakiny-bot/Dockerfile
T
imcompiling b1c0b7013d
build_develop / build (push) Successful in 1m45s
build_latest / build (push) Successful in 42s
Update dockerfile to include database.
2023-08-26 20:52:31 -04:00

22 lines
591 B
Docker

FROM python:3.8.10-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 cogs cogs/
COPY dakiny_bot.py dakiny_bot.py
COPY requirements.txt requirements.txt
COPY config.py config.py
COPY classes classes/
COPY database database
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"]