mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update to debian
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
50fb485907
commit
e2b4562abc
|
@ -11,4 +11,4 @@
|
||||||
#
|
#
|
||||||
FROM r.j3ss.co/opensnitchd:latest
|
FROM r.j3ss.co/opensnitchd:latest
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/opensnitch-qt"]
|
ENTRYPOINT ["/usr/local/bin/opensnitch-qt"]
|
||||||
|
|
|
@ -5,41 +5,48 @@
|
||||||
# --cap-add NET_ADMIN \
|
# --cap-add NET_ADMIN \
|
||||||
# r.j3ss.co/opensnitchd
|
# r.j3ss.co/opensnitchd
|
||||||
#
|
#
|
||||||
FROM alpine:latest
|
FROM debian:sid
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apt-get update && apt-get install -y \
|
||||||
bash \
|
ca-certificates \
|
||||||
iptables \
|
iptables \
|
||||||
libcap \
|
libcap2 \
|
||||||
libnetfilter_queue \
|
libnetfilter-queue1 \
|
||||||
libnfnetlink \
|
libnfnetlink0 \
|
||||||
python3 \
|
python3 \
|
||||||
py3-gobject3 \
|
python3-dbus \
|
||||||
py3-qt5 \
|
python3-dev \
|
||||||
|
python3-gi \
|
||||||
|
python3-pyinotify \
|
||||||
|
python3-pyqt5 \
|
||||||
|
python3-setuptools \
|
||||||
tcpdump \
|
tcpdump \
|
||||||
xtables-addons \
|
--no-install-recommends \
|
||||||
--repository https://dl-3.alpinelinux.org/alpine/edge/testing
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV XTABLES_LIBDIR "/usr/lib/xtables"
|
ENV XTABLES_LIBDIR "/usr/lib/xtables"
|
||||||
ENV OPENSNITCH_VERSION master
|
ENV OPENSNITCH_VERSION master
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
build-base \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
libcap-dev \
|
libcap-dev \
|
||||||
libnetfilter_queue-dev \
|
libnetfilter-queue-dev \
|
||||||
libnfnetlink-dev \
|
libnfnetlink-dev \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
' \
|
' \
|
||||||
set -x \
|
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 \
|
&& git clone --depth 1 --branch ${OPENSNITCH_VERSION} https://github.com/evilsocket/opensnitch.git /usr/src/opensnitch \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd /usr/src/opensnitch \
|
cd /usr/src/opensnitch \
|
||||||
&& python3 setup.py install \
|
&& python3 setup.py install \
|
||||||
&& rm -rf /usr/src/opensnitch \
|
&& rm -rf /usr/src/opensnitch \
|
||||||
) \
|
) \
|
||||||
&& apk del $buildDeps \
|
&& apt-get purge -y $buildDeps \
|
||||||
&& echo "Build complete."
|
&& echo "Build complete."
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/opensnitchd", "--debug"]
|
ENTRYPOINT ["/usr/local/bin/opensnitchd", "--debug"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user