Update dockerfile to use poetry for dependencies.
build_develop / build (push) Successful in 1m35s

Decided to just use poetry to just export requirements instead of building package.
This commit is contained in:
2024-05-18 22:29:18 -04:00
parent 6a71e9ab1d
commit dea3f7cabf
+3 -6
View File
@@ -1,22 +1,19 @@
FROM python:3.10.6-slim
FROM python:3.11.9-slim
# install dependencies
RUN apt-get update && apt-get -y upgrade && apt-get -y install git
RUN pip install --upgrade pip
WORKDIR /home
COPY requirements.txt requirements.txt
COPY config.py config.py
COPY main.py main.py
COPY utils.py utils.py
COPY pyproject.toml pyproject.toml
COPY classes classes/
COPY cogs cogs/
COPY database_setup database_setup/
RUN pip install -r requirements.txt
RUN pip install --upgrade pip && pip install poetry && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
CMD ["python3", "-u", "./main.py"]