-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (52 loc) · 1.98 KB
/
Copy pathDockerfile
File metadata and controls
67 lines (52 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Project: BRS-XSS v4.0.0-beta.2 (XSS Detection Suite)
# Company: EasyProTech LLC (www.easypro.tech)
# Dev: Brabus
# Date: Fri 26 Dec 2025 23:10:02 UTC
# Status: Modified
# Telegram: https://t.me/EasyProTech
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
# Install system dependencies for Playwright
RUN apt-get update && apt-get install -y --no-install-recommends \
curl wget gnupg ca-certificates \
libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 \
libgbm1 libasound2 libxshmfence1 libpango-1.0-0 libpangocairo-1.0-0 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt ./
# Install Python dependencies
RUN pip install --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY pyproject.toml setup.py ./
COPY brsxss/ brsxss/
COPY cli/ cli/
COPY config/ config/
# Install application
RUN pip install --no-deps .
# Install browsers for Playwright (only Chromium for smaller image)
RUN playwright install chromium --with-deps
# Create non-root user for security
RUN useradd --create-home --shell /bin/bash brsxss && \
chown -R brsxss:brsxss /app
USER brsxss
# Create output directory
RUN mkdir -p /app/results
VOLUME ["/app/results"]
ENTRYPOINT ["brs-xss"]
CMD ["--help"]
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD brs-xss version || exit 1
# Labels for better container management
LABEL org.opencontainers.image.title="BRS-XSS" \
org.opencontainers.image.description="Context-aware async XSS scanner for CI/CD" \
org.opencontainers.image.version="4.0.0-beta.2" \
org.opencontainers.image.vendor="EasyProTech LLC" \
org.opencontainers.image.source="https://github.com/EPTLLC/brs-xss" \
org.opencontainers.image.licenses="GPL-3.0-or-later"