mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
migrate to uv
This commit is contained in:
1 parent
53c7e92304
commit
4ccf15d355
10 files changed
+2134
-28
No files matched your search
+10
-4
@@ -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"]
|
||||
Reference in new issue
Block a user