mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-25 21:25:40 +02:00
smaller
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
985853297c
commit
64ea668765
opensnitchd
@ -7,14 +7,17 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
python3
|
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
|
ENV OPENSNITCH_VERSION master
|
||||||
ENV PYINSTALLER_TAG v3.3
|
|
||||||
|
|
||||||
COPY ldd /bin/ldd
|
|
||||||
COPY hook-opensnitch.py /tmp/hooks/hook-opensnitch.py
|
|
||||||
ENV PATH /bin:$PATH
|
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
build-base \
|
build-base \
|
||||||
@ -25,43 +28,13 @@ RUN buildDeps=' \
|
|||||||
libnfnetlink-dev \
|
libnfnetlink-dev \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
py3-gobject3 \
|
|
||||||
py3-inotify \
|
|
||||||
py3-qt5 \
|
|
||||||
zlib-dev \
|
|
||||||
' \
|
' \
|
||||||
set -x \
|
set -x \
|
||||||
&& apk --no-cache add $buildDeps \
|
&& apk --no-cache add $buildDeps \
|
||||||
--repository https://dl-3.alpinelinux.org/alpine/edge/testing \
|
|
||||||
&& git clone --depth 1 --branch $PYINSTALLER_TAG https://github.com/pyinstaller/pyinstaller.git /tmp/pyinstaller \
|
|
||||||
&& ( \
|
|
||||||
cd /tmp/pyinstaller/bootloader \
|
|
||||||
&& python3 ./waf configure --no-lsb all \
|
|
||||||
&& pip3 install .. \
|
|
||||||
&& rm -Rf /tmp/pyinstaller \
|
|
||||||
) \
|
|
||||||
&& 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 \
|
||||||
&& pyinstaller \
|
|
||||||
--exclude-module pycrypto \
|
|
||||||
--exclude-module PyInstaller \
|
|
||||||
--noconfirm \
|
|
||||||
--onefile \
|
|
||||||
--clean \
|
|
||||||
--hidden-import=pkg_resources \
|
|
||||||
--additional-hooks-dir=/tmp/hooks/ \
|
|
||||||
$(which opensnitchd) \
|
|
||||||
&& mv dist/opensnitchd $(which opensnitchd) \
|
|
||||||
&& pyinstaller \
|
|
||||||
--exclude-module pycrypto \
|
|
||||||
--exclude-module PyInstaller \
|
|
||||||
--noconfirm \
|
|
||||||
--onefile \
|
|
||||||
--clean \
|
|
||||||
$(which opensnitch-qt) \
|
|
||||||
&& mv dist/opensnitch-qt $(which opensnitch-qt) \
|
|
||||||
&& rm -rf /usr/src/opensnitch \
|
&& rm -rf /usr/src/opensnitch \
|
||||||
) \
|
) \
|
||||||
&& apk del $buildDeps \
|
&& apk del $buildDeps \
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
from PyInstaller.utils.hooks import copy_metadata
|
|
||||||
|
|
||||||
datas = copy_metadata('opensnitch==0.0.2')
|
|
Loading…
x
Reference in New Issue
Block a user