From dea3f7cabf89c1a45e3540529f8a5a934a551da9 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 18 May 2024 22:29:18 -0400 Subject: [PATCH] Update dockerfile to use poetry for dependencies. Decided to just use poetry to just export requirements instead of building package. --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index be4ecdc..c76014d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file