Update template to use uv and have renovate.

This commit is contained in:
2025-03-16 13:07:29 -04:00
parent 9ec8b29138
commit edbc8de473
5 changed files with 78 additions and 18 deletions
+6 -3
View File
@@ -1,4 +1,7 @@
FROM python:3.11.9-slim
FROM python:3.12.3-slim
# install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
WORKDIR /home
@@ -8,6 +11,6 @@ COPY pyproject.toml pyproject.toml
COPY cogs cogs/
RUN pip install --upgrade pip && pip install poetry && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
RUN uv sync --frozen --no-dev
CMD ["python3", "-u", "./main.py"]
CMD ["uv", "run", "./main.py"]