30 lines
560 B
Docker
30 lines
560 B
Docker
FROM python:3.9-alpine
|
|
|
|
RUN apk add --no-cache \
|
|
bash \
|
|
bind-tools \
|
|
curl \
|
|
dumb-init \
|
|
iptables \
|
|
git \
|
|
netcat-openbsd \
|
|
ulogd \
|
|
tcpdump \
|
|
wget
|
|
|
|
COPY requirements.txt /tmp/
|
|
RUN pip3 install -r /tmp/requirements.txt
|
|
|
|
COPY pr0cks /opt/pr0cks
|
|
COPY bin/ /opt/bin
|
|
|
|
# https://it-offshore.co.uk/linux/alpine-linux/55-alpine-linux-lxc-guest-iptables-logging
|
|
RUN sed -i -e "s/#stack=log1/stack=log1/g" /etc/ulogd.conf
|
|
|
|
ENV I2PD_IP="172.16.200.10"
|
|
ENV I2PD_PORT=4444
|
|
ENV LOCAL_PROXY_PORT=10080
|
|
|
|
ENTRYPOINT ["dumb-init"]
|
|
CMD ["/bin/bash" , "/opt/bin/exec.sh"]
|