Files
Aidem-Media-DLL-Analysis/docker/api.Dockerfile
Patryk Gensch aa65beb7c1 worker: pin Jython-era Ghidra (11.2.1) for headless .py post-script
Ghidra 11.4+/12.x dropped the bundled Jython, so the .py extractor fails headless
with "Ghidra was not started with PyGhidra. Python is not available" — analysis
succeeds but the post-script never runs, so no snapshot is produced. Default
GHIDRA_URL now points at 11.2.1 (Jython); README documents the constraint and the
PyGhidra path for staying on 12.x. Keeps the local Dockerfile fixes (pip upgrade,
non-editable install).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 17:57:17 +02:00

19 lines
570 B
Docker

# API + Command Center UI. Stays slim — the heavy Ghidra lifting lives in the worker image.
FROM python:3.12-slim
WORKDIR /app
# Copy metadata first for layer caching, then the source.
COPY pyproject.toml README.md ./
COPY ams ./ams
COPY ghidra_scripts ./ghidra_scripts
COPY snapshots ./snapshots
# The API needs the queue client too, to enqueue jobs.
RUN pip install --no-cache-dir ".[api]" rq redis "psycopg[binary]>=3.1"
ENV AMS_UPLOAD_DIR=/data/uploads
EXPOSE 8000
CMD ["uvicorn", "ams.api.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000"]