From d609587721cc572b701c90f15851b9b0bae003f3 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 6 May 2025 14:08:55 +0300 Subject: [PATCH] Revert "try uv instead of pip for the deployment" This reverts commit d289e692bbca1dd4db707777ffe4e46ec74ba657. --- Dockerfile | 6 +++--- pyproject.toml | 16 ---------------- 2 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 pyproject.toml diff --git a/Dockerfile b/Dockerfile index 0c44d2d..4aa6a75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM python:alpine3.21 -COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ WORKDIR /pgbot -COPY pyproject.toml . -RUN uv sync +COPY requirements.txt . +ENV PIP_ROOT_USER_ACTION=ignore +RUN pip install -r requirements.txt COPY . . CMD /pgbot/pgbot diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 488c8b0..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,16 +0,0 @@ -[project] -name = "pgbot" -version = "0.1.0" -description = "not applicable" -readme = "README.md" -requires-python = ">=3.12" -dependencies = [ - "aiocron>=1.8", - "bs4>=0.0.2", - "fake-headers>=1", - "psycopg[binary]>=3.2", - "pytz>=2024.2", - "pyyaml>=6", - "requests>=2.32", - "telethon>=1.37", -]