UV Erweiterung
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user