From 00212ea09d9449be3b85e953577689d5bf8d2812 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 5 Oct 2024 12:23:30 -0400 Subject: [PATCH] Update dockerfile to use poetry. --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 277e60f..13a32a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,19 @@ -FROM python:3.8.10-slim +FROM python:3.12.3-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 classes classes/ COPY cogs cogs/ COPY utilities utilities/ -COPY highscores.py highscores.py -COPY requirements.txt requirements.txt +COPY main.py main.py +COPY pyproject.toml pyproject.toml -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 # remove build deps that aren't needed to run # RUN apt-get -y remove python3-dev build-essential && apt-get -y autoremove -CMD ["python3", "./highscores.py"] \ No newline at end of file +CMD ["python3", "./main.py"] \ No newline at end of file