Files
dakiny-bot/Dockerfile
T
imcompiling 2991f81e04
build_develop / build (push) Successful in 2m4s
build_latest / build (push) Successful in 42s
Update python version.
2023-08-26 21:02:22 -04:00

22 lines
591 B
Docker

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 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"]