diff --git a/Dockerfile b/Dockerfile index 2e73ca1..20c0b3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,6 @@ ARG DEBIAN_FRONTEND="noninteractive" ARG DEBCONF_NONINTERACTIVE_SEEN="true" RUN set -eu && extra="" && \ - if [ "$TARGETPLATFORM" != "linux/amd64" ]; then extra="qemu-user"; fi && \ apt-get update && \ apt-get --no-install-recommends -y install \ jq \ @@ -28,6 +27,10 @@ RUN set -eu && extra="" && \ unzip \ nginx \ procps \ + python3 \ + python3-pip \ + python3-msgpack \ + python3-pysodium \ xz-utils \ iptables \ iproute2 \ @@ -40,9 +43,9 @@ RUN set -eu && extra="" && \ iputils-ping \ ca-certificates \ netcat-openbsd \ - qemu-system-x86 \ - "$extra" && \ + qemu-system-x86 && \ apt-get clean && \ + pip3 install --no-cache-dir --break-system-packages dissect.cstruct && \ mkdir -p /etc/qemu && \ echo "allow br0" > /etc/qemu/bridge.conf && \ unlink /etc/nginx/sites-enabled/default && \ @@ -55,6 +58,8 @@ COPY --chmod=755 ./web /var/www/ COPY --chmod=755 --from=builder /qemu-host.bin /run/host.bin COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/sites-enabled/web.conf +ADD https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/patology.py + VOLUME /storage EXPOSE 22 139 445 5000