dockerfiles/opensnitchd/Dockerfile
Jess Frazelle 64ea668765
smaller
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-11-08 13:17:18 -05:00

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"]