mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
64ea668765
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
44 lines
882 B
Docker
44 lines
882 B
Docker
# Usage:
|
|
# docker run -d \
|
|
# --name=opensnitchd \
|
|
# --net host \
|
|
# r.j3ss.co/opensnitchd
|
|
#
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
libcap \
|
|
libnetfilter_queue \
|
|
libnfnetlink \
|
|
python3 \
|
|
py3-gobject3 \
|
|
py3-inotify \
|
|
py3-qt5 \
|
|
tcpdump \
|
|
--repository https://dl-3.alpinelinux.org/alpine/edge/testing
|
|
|
|
ENV OPENSNITCH_VERSION master
|
|
|
|
RUN buildDeps=' \
|
|
build-base \
|
|
git \
|
|
libc-dev \
|
|
libcap-dev \
|
|
libnetfilter_queue-dev \
|
|
libnfnetlink-dev \
|
|
musl-dev \
|
|
python3-dev \
|
|
' \
|
|
set -x \
|
|
&& apk --no-cache add $buildDeps \
|
|
&& 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 \
|
|
&& echo "Build complete."
|
|
|
|
CMD ["/usr/bin/opensnitchd"]
|