blob: 1ebee4c556abe50701f8fb9b7af131097a693b49 [file] [log] [blame]
FROM alpine:3.17
LABEL maintainer "The Infrastructure Company GmbH <info@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 \
xtables-addons \
tzdata \
py3-pip \
musl-dev \
&& pip3 install --ignore-installed --upgrade pip \
python-iptables \
redis \
ipaddress \
dnspython \
ipaddress \
dnspython \
&& apk del .build-deps
# && pip3 install --upgrade pip python-iptables==0.13.0 redis ipaddress dnspython \
COPY server.py /
CMD ["python3", "-u", "/server.py"]