From 22d17390df0a91a160c146bc598e9adc5d0da172 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 22 Jul 2019 21:08:44 +0200 Subject: [PATCH] [Netfilter] Alpine 3.10 with dirty, dirty hack to workaround iptables issue with Python --- data/Dockerfiles/netfilter/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/data/Dockerfiles/netfilter/Dockerfile b/data/Dockerfiles/netfilter/Dockerfile index ec461285..55594de6 100644 --- a/data/Dockerfiles/netfilter/Dockerfile +++ b/data/Dockerfiles/netfilter/Dockerfile @@ -1,13 +1,15 @@ -FROM alpine:3.9 +FROM alpine:3.10 LABEL maintainer "Andre Peters " ENV XTABLES_LIBDIR /usr/lib/xtables ENV PYTHON_IPTABLES_XTABLES_VERSION 12 ENV IPTABLES_LIBDIR /usr/lib -RUN apk add --virtual .build-deps gcc python3-dev libffi-dev openssl-dev \ - && apk add -U python3 iptables ip6tables tzdata musl-dev \ - && pip3 install --upgrade pip python-iptables==0.13.0 redis ipaddress dnspython \ +RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories \ + && apk add --virtual .build-deps gcc python3-dev libffi-dev openssl-dev \ + && apk add -U python3 iptables=1.6.2-r1 ip6tables=1.6.2-r1 tzdata musl-dev \ + && pip3 install --upgrade pip python-iptables redis ipaddress dnspython \ +# && pip3 install --upgrade pip python-iptables==0.13.0 redis ipaddress dnspython \ && apk del .build-deps COPY server.py /