try uv instead of pip for the deployment

This commit is contained in:
Von Random 2025-05-06 14:06:01 +03:00
parent e8be1042b8
commit d289e692bb
2 changed files with 19 additions and 3 deletions

View file

@ -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