mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 10:34:31 +01:00
- docker-compose.yml: PostgreSQL 16, neurosploit app, kali-worker - Dockerfile: multi-stage Rust build + Node runtime - Dockerfile.kali: kalilinux/kali-rolling with full pentest toolbox - install.sh: auto-generate credentials, build images, start services - db/schema.sql: PostgreSQL schema for runs, findings, auth Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.3 KiB
Docker
39 lines
1.3 KiB
Docker
# NeuroSploit — main application image
|
|
# Multi-stage: build Rust binary + bundle Node web console
|
|
|
|
# ── Rust build ──────────────────────────────────────────────────────────
|
|
FROM rust:1.83-bookworm AS rust-build
|
|
WORKDIR /src
|
|
COPY neurosploit-rs/ ./
|
|
RUN cargo build --release --bin neurosploit \
|
|
&& strip target/release/neurosploit \
|
|
&& cp target/release/neurosploit /out-neurosploit
|
|
|
|
# ── Runtime ─────────────────────────────────────────────────────────────
|
|
FROM debian:bookworm-slim
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates curl nodejs npm docker.io jq git; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Rust binary
|
|
COPY --from=rust-build /out-neurosploit /usr/local/bin/neurosploit
|
|
|
|
# Web console
|
|
COPY web/ /app/web/
|
|
RUN cd /app/web && npm ci --omit=dev 2>/dev/null || true
|
|
|
|
# Agent skills (markdown)
|
|
COPY agents_md/ /app/agents_md/
|
|
|
|
# DB schema
|
|
COPY db/ /app/db/
|
|
|
|
EXPOSE 8787
|
|
|
|
# Start the web console (which spawns the harness as needed)
|
|
CMD ["node", "/app/web/server.js"]
|