mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-20 15:21:30 +02:00
- Implemented TargetEnrichmentStage for enriching targets with DNS, WHOIS, and BGP context. - Added VhostStage for virtual host discovery using host-header fuzzing. - Introduced WafDetectStage for fingerprinting web application firewalls. - Created configuration files for each new stage with relevant parameters. - Updated Dockerfile to copy stages instead of engines. - Enhanced existing tools and services for better integration with new stages. - Refactored task management in Celery to accommodate new stages and improve error handling.
43 lines
1.0 KiB
Docker
43 lines
1.0 KiB
Docker
FROM python:3.13-slim as base
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONPATH=/app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
|
|
|
|
##################################################################
|
|
# Development
|
|
##################################################################
|
|
|
|
FROM base AS development
|
|
|
|
# Copy shared directory inside the app
|
|
COPY shared /app/shared
|
|
COPY tools /app/tools
|
|
COPY stages /app/stages
|
|
|
|
COPY api/pyproject.toml api/uv.lock* ./
|
|
|
|
RUN uv sync --no-install-project
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
CMD ["uv", "run", "uvicorn", "app.main:app", \
|
|
"--host", "0.0.0.0", \
|
|
"--port", "8000", \
|
|
"--reload", \
|
|
"--reload-dir", "/app/app", \
|
|
"--reload-dir", "/app/shared", \
|
|
"--reload-dir", "/app/tools", \
|
|
"--reload-dir", "/app/stages", \
|
|
"--timeout-graceful-shutdown", "2"]
|
|
|
|
##################################################################
|
|
# TODO: Production
|
|
##################################################################
|