Files
rengine/api/Dockerfile
T
Yogesh Ojha a5e6c0ac0d feat: add target enrichment, vhost discovery, and WAF detection stages
- 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.
2026-09-02 10:18:03 +05:30

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
##################################################################