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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue