Template
Update template to use uv and have renovate.
This commit is contained in:
+6
-3
@@ -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"]
|
||||
Reference in New Issue
Block a user