Skip to content

Instantly share code, notes, and snippets.

@antonioabelgc
Forked from jgru/Dockerfile
Last active December 12, 2024 13:23
Show Gist options
  • Save antonioabelgc/0a4ab9e4ad48024a0d29f07923d22820 to your computer and use it in GitHub Desktop.
Save antonioabelgc/0a4ab9e4ad48024a0d29f07923d22820 to your computer and use it in GitHub Desktop.
Autopsy 4.21.0 in a Docker
services:
autopsy:
restart: unless-stopped
image: autopsy:latest
build: .
environment:
# Run `xhost local:root` on your host,
# if the guest is unable to connect to display
- DISPLAY=unix${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
network_mode: host
command: "/bin/autopsy --nosplash"
# Base image
FROM ubuntu:24.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
# Install prerequisites and dependencies
RUN apt-get update && apt-get install -y \
wget unzip sudo openjdk-17-jdk openjdk-17-jre openjfx \
build-essential autoconf libtool automake git zip ant \
libde265-dev libheif-dev libpq-dev \
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev \
libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav \
gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa \
gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio \
&& rm -rf /var/lib/apt/lists/*
# Download and install The Sleuth Kit Java Debian package
RUN wget https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-4.12.1/sleuthkit-java_4.12.1-1_amd64.deb \
&& apt-get update \
&& apt-get install -y ./sleuthkit-java_4.12.1-1_amd64.deb \
&& rm sleuthkit-java_4.12.1-1_amd64.deb
# Download Autopsy
WORKDIR /opt
RUN wget https://github.com/sleuthkit/autopsy/releases/download/autopsy-4.21.0/autopsy-4.21.0.zip
# Download install_application.sh script
RUN wget -O /opt/install_application.sh https://raw.githubusercontent.com/sleuthkit/autopsy/develop/linux_macos_install_scripts/install_application.sh \
&& chmod +x /opt/install_application.sh
# Install Autopsy using install_application.sh
RUN /opt/install_application.sh -z /opt/autopsy-4.21.0.zip -i /opt/autopsy -j /usr/lib/jvm/java-1.17.0-openjdk-amd64
RUN ln -s /opt/autopsy/autopsy-4.21.0/bin/autopsy /bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment