UV Erweiterung

This commit is contained in:
2026-02-16 21:21:21 +00:00
parent d2f25d15ed
commit 515a87425d
10 changed files with 242 additions and 8 deletions

View File

@@ -2,10 +2,16 @@ FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# uv installieren
RUN pip install uv
# Nur dependency files zuerst kopieren (Docker Cache!)
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
# Rest kopieren
COPY app.py .
EXPOSE 5000
CMD ["python", "app.py"]
CMD ["uv", "run", "app.py"]