Skip to content

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

feat: remove comments

dextmorgn22ba7615a7e4
diff --git a/flowsint-api/Dockerfile b/flowsint-api/Dockerfile
index 50b7db10..48d3e8a5 100644
--- a/flowsint-api/Dockerfile
+++ b/flowsint-api/Dockerfile
@@ -1,11 +1,8 @@
-# --- Base stage with Python 3.12 ---
FROM python:3.12-slim AS base
-# Environment variables
ENV PYTHONUNBUFFERED=1
ENV POETRY_VIRTUALENVS_CREATE=false
-# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
@@ -15,55 +12,45 @@ RUN apt-get update && apt-get install -y \
libcairo2-dev \
&& rm -rf /var/lib/apt/lists/*
-# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 - \
&& ln -s /root/.local/bin/poetry /usr/local/bin/poetry
WORKDIR /app
-# --- Development stage ---
FROM base AS dev
ENV APP_ENV=development
-# Copy all dependency packages
COPY flowsint-core /app/flowsint-core
COPY flowsint-types /app/flowsint-types
COPY flowsint-transforms /app/flowsint-transforms
-# Copy API files
COPY flowsint-api /app/flowsint-api
WORKDIR /app/flowsint-api
-# Install dependencies with dev packages
RUN poetry install --no-root
-# Expose FastAPI port
EXPOSE 5001
ENTRYPOINT ["/app/flowsint-api/entrypoint.sh"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "5001", "--reload"]
-# --- Production stage ---
+# Production stage
FROM base AS prod
ENV APP_ENV=production
-# Copy all dependency packages
COPY flowsint-core /app/flowsint-core
COPY flowsint-types /app/flowsint-types
COPY flowsint-transforms /app/flowsint-transforms
-# Copy API files
COPY flowsint-api /app/flowsint-api
WORKDIR /app/flowsint-api
-# Install production dependencies only (no dev)
RUN poetry install
-# Expose FastAPI port
EXPOSE 5001
ENTRYPOINT ["/app/flowsint-api/entrypoint.sh"]
diff --git a/flowsint-app/Dockerfile.dev b/flowsint-app/Dockerfile.dev
index caafb878..36867bb4 100644
--- a/flowsint-app/Dockerfile.dev
+++ b/flowsint-app/Dockerfile.dev
@@ -2,15 +2,11 @@ FROM node:24
WORKDIR /app
-# Copy package files
COPY package*.json ./
RUN yarn install
-# Copy source code
COPY . .
-# Expose Vite dev server port
EXPOSE 5173
-# Run development server with host flag to make it accessible from outside container
-CMD ["yarn", "dev", "--", "--host", "0.0.0.0"]
+CMD ["yarn", "dev", "--host", "0.0.0.0"]