mirror of
https://github.com/mvt-project/mvt.git
synced 2026-02-12 16:42:45 +00:00
37 lines
1.4 KiB
Docker
37 lines
1.4 KiB
Docker
# Create main image
|
|
FROM python:3.10.14-alpine3.20 as main
|
|
|
|
LABEL org.opencontainers.image.url="https://mvt.re"
|
|
LABEL org.opencontainers.image.documentation="https://docs.mvt.re"
|
|
LABEL org.opencontainers.image.source="https://github.com/mvt-project/mvt"
|
|
LABEL org.opencontainers.image.title="Mobile Verification Toolkit (Android)"
|
|
LABEL org.opencontainers.image.description="MVT is a forensic tool to look for signs of infection in smartphone devices."
|
|
LABEL org.opencontainers.image.licenses="MVT License 1.1"
|
|
LABEL org.opencontainers.image.base.name=docker.io/library/python:3.10.14-alpine3.20
|
|
|
|
# Install runtime dependencies
|
|
RUN apk add --no-cache \
|
|
android-tools \
|
|
git \
|
|
libusb \
|
|
openjdk11-jre-headless \
|
|
sqlite
|
|
|
|
# Install mvt
|
|
COPY ./ mvt
|
|
RUN apk add --no-cache git \
|
|
&& PIP_NO_CACHE_DIR=1 pip3 install ./mvt \
|
|
&& apk del git && rm -rf ./mvt
|
|
|
|
# Installing ABE
|
|
ADD --checksum=sha256:a20e07f8b2ea47620aff0267f230c3f1f495f097081fd709eec51cf2a2e11632 \
|
|
https://github.com/nelenkov/android-backup-extractor/releases/download/master-20221109063121-8fdfc5e/abe.jar /opt/abe/abe.jar
|
|
# Create alias for abe
|
|
RUN echo 'alias abe="java -jar /opt/abe/abe.jar"' >> ~/.bashrc
|
|
|
|
# Generate adb key folder
|
|
RUN echo 'if [ ! -f /root/.android/adbkey ]; then adb keygen /root/.android/adbkey 2&>1 > /dev/null; fi' >> ~/.bashrc
|
|
RUN mkdir /root/.android
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/mvt-android" ]
|