FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
libssl-dev \
libffi-dev \
ca-certificates \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies used by cipherscan
RUN python -m pip install --no-cache-dir tlslite-ng ecdsa
# Create application directory
WORKDIR /opt/cipherscan
# Copy repository into the image
COPY . .
# Default command to show help (smoke test should be able to run without network)
CMD ["bash", "-lc", "python3 cscan.py --help"]