diff --git a/opensnitch/Dockerfile b/opensnitch/Dockerfile index 9574d3e..6130746 100644 --- a/opensnitch/Dockerfile +++ b/opensnitch/Dockerfile @@ -11,4 +11,4 @@ # FROM r.j3ss.co/opensnitchd:latest -ENTRYPOINT ["/usr/bin/opensnitch-qt"] +ENTRYPOINT ["/usr/local/bin/opensnitch-qt"] diff --git a/opensnitchd/Dockerfile b/opensnitchd/Dockerfile index efb8887..7b2b799 100644 --- a/opensnitchd/Dockerfile +++ b/opensnitchd/Dockerfile @@ -5,41 +5,48 @@ # --cap-add NET_ADMIN \ # r.j3ss.co/opensnitchd # -FROM alpine:latest +FROM debian:sid -RUN apk add --no-cache \ - bash \ +RUN apt-get update && apt-get install -y \ + ca-certificates \ iptables \ - libcap \ - libnetfilter_queue \ - libnfnetlink \ + libcap2 \ + libnetfilter-queue1 \ + libnfnetlink0 \ python3 \ - py3-gobject3 \ - py3-qt5 \ + python3-dbus \ + python3-dev \ + python3-gi \ + python3-pyinotify \ + python3-pyqt5 \ + python3-setuptools \ tcpdump \ - xtables-addons \ - --repository https://dl-3.alpinelinux.org/alpine/edge/testing + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* ENV XTABLES_LIBDIR "/usr/lib/xtables" ENV OPENSNITCH_VERSION master RUN buildDeps=' \ - build-base \ - git \ + build-essential \ + git \ libcap-dev \ - libnetfilter_queue-dev \ + libnetfilter-queue-dev \ libnfnetlink-dev \ python3-dev \ ' \ set -x \ - && apk --no-cache add $buildDeps \ + && apt-get update && apt-get install -y \ + $buildDeps \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ && git clone --depth 1 --branch ${OPENSNITCH_VERSION} https://github.com/evilsocket/opensnitch.git /usr/src/opensnitch \ && ( \ cd /usr/src/opensnitch \ && python3 setup.py install \ && rm -rf /usr/src/opensnitch \ ) \ - && apk del $buildDeps \ + && apt-get purge -y $buildDeps \ && echo "Build complete." -ENTRYPOINT ["/usr/bin/opensnitchd", "--debug"] +ENTRYPOINT ["/usr/local/bin/opensnitchd", "--debug"]