Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat(api): install uv Dockerfile

dextmorgn400b21a7d124
diff --git a/flowsint-api/Dockerfile b/flowsint-api/Dockerfile
index 3590e1bd..7d38b371 100644
--- a/flowsint-api/Dockerfile
+++ b/flowsint-api/Dockerfile
@@ -1,7 +1,5 @@
FROM python:3.12-slim AS builder
-COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
-
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
UV_COMPILE_BYTECODE=1 \
@@ -9,7 +7,7 @@ ENV PYTHONUNBUFFERED=1 \
WORKDIR /app
-# build deps
+# build deps + uv
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
@@ -17,7 +15,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libpq-dev \
pkg-config \
libcairo2-dev \
- && rm -rf /var/lib/apt/lists/*
+ && rm -rf /var/lib/apt/lists/* \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
# Copy workspace config
COPY pyproject.toml uv.lock ./