mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-02-12 22:12:45 +00:00
Add files via upload
This commit is contained in:
32
docker/Dockerfile.backend.lite
Normal file
32
docker/Dockerfile.backend.lite
Normal file
@@ -0,0 +1,32 @@
|
||||
# NeuroSploit v3 - LITE Dockerfile (Fast Build)
|
||||
# Minimal image without external security tools
|
||||
# Use this for development or when you don't need the recon tools
|
||||
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Install minimal dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python dependencies
|
||||
COPY backend/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY backend/ ./backend/
|
||||
COPY prompts/ ./prompts/
|
||||
|
||||
# Create data directories
|
||||
RUN mkdir -p data/reports data/scans data/recon
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8000/api/health || exit 1
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user