migrate to uv

This commit is contained in:
leander committed 2026-10-24 02:46:42 +02:00
1 parent 53c7e92304
commit 4ccf15d355
10 files changed
+2134 -28

No files matched your search

+10 -4
View File
@@ -1,15 +1,21 @@
FROM python:3.14
COPY --from=ghcr.io/astral-sh/uv:0.13.5 /uv /uvx /bin/
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=never
WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN apt-get update && apt-get install -y ffmpeg graphviz pandoc
COPY pyproject.toml uv.lock .python-version ./
RUN uv sync --locked --no-dev --no-cache
COPY . .
ENV PATH="/app/.venv/bin:$PATH"
VOLUME logs
CMD ["python3", "src/run.py"]