Skip to content

Instantly share code, notes, and snippets.

@50n1cd347h9
Last active May 20, 2025 12:48
Show Gist options
  • Save 50n1cd347h9/20535e3d703f733b997b3e4576e35686 to your computer and use it in GitHub Desktop.
Save 50n1cd347h9/20535e3d703f733b997b3e4576e35686 to your computer and use it in GitHub Desktop.
binary ninja in docker

tested on remnux linux Version: 1.4.3.1.g2137384

FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV QT_QPA_PLATFORM=xcb
ENV QT_QPA_PLATFORM_PLUGIN_PATH=/home/bnuser/binaryninja

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      locales \
      libxcb-cursor0 \
      libxcb-icccm4 libxcb-keysyms1 libxcb-shape0 libxcb-xkb1 libxkbcommon-x11-0 \
      libstdc++6 \
      libglib2.0-0 \
      libgtk-3-0 \
      libnss3 \
      libx11-6 \
      libxcb1 \
      libxcb-cursor0 \
      libxcb-xinerama0 \
      libxcb-keysyms1 \
      libxcb-randr0 \
      libxcb-image0 \
      libxcb-shm0 \
      libxcb-icccm4 \
      libxcb-sync1 \
      libxcb-xfixes0 \
      libxkbcommon0 \
      libfontconfig1 \
      libglu1-mesa \
      libegl1 \
      libgl1-mesa-glx \
      libdbus-1-3 \
      libexpat1 \
      libuuid1 \
      liblzma5 \
      liblz4-1 \
      libgcrypt20 \
      libgpg-error0 \
      python3 libpython3-all-dev \
      fontconfig && \
    locale-gen en_US.UTF-8 && \
    update-locale LANG=en_US.UTF-8 && \
    rm -rf /var/lib/apt/lists/*

RUN useradd -m -s /bin/bash bnuser
USER bnuser
WORKDIR /home/bnuser

COPY --chown=bnuser:bnuser binaryninja/ ./binaryninja
WORKDIR /home/bnuser/binaryninja

CMD ["./binaryninja"]

apt install のところはテキトーです

docker build -t binja.

xhost +local:docker

docker run --rm -it \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  binja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment