sqlmapproject-sqlmap
SUCCESS
2m 38s
History Source
SummaryIterations1Transcript3Dockerfile
Dockerfile27 lines · 705 chars
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1

# Install essential build tools and libraries (best-effort for various Python deps)
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    libxml2-dev \
    libxslt1-dev \
    libffi-dev \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /opt/sqlmap

# Copy the repository contents
COPY . .

# Upgrade pip and install optional requirements if present
RUN python -m pip install --upgrade pip
RUN if [ -f requirements.txt ]; then python -m pip install --no-cache-dir -r requirements.txt; fi

# Ensure the main script is executable
RUN chmod +x sqlmap.py

# Default command: run the smoke test
CMD ["python","sqlmap.py","--smoke"]