try uv instead of pip for the deployment
This commit is contained in:
parent
e8be1042b8
commit
d289e692bb
2 changed files with 19 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
FROM python:alpine3.21
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
WORKDIR /pgbot
|
||||
|
||||
COPY requirements.txt .
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
RUN pip install -r requirements.txt
|
||||
COPY pyproject.toml .
|
||||
RUN uv sync
|
||||
|
||||
COPY . .
|
||||
CMD /pgbot/pgbot
|
||||
|
|
16
pyproject.toml
Normal file
16
pyproject.toml
Normal file
|
@ -0,0 +1,16 @@
|
|||
[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",
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue