[Netfilter] Alpine 3.10 with dirty, dirty hack to workaround iptables issue with Python
parent
3d52cc2270
commit
22d17390df
|
@ -1,13 +1,15 @@
|
|||
FROM alpine:3.9
|
||||
FROM alpine:3.10
|
||||
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
||||
|
||||
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 /
|
||||
|
|
Loading…
Reference in New Issue