FROM docker:28-cli

RUN apk add --no-cache redsocks iptables curl


# Copy redsocks config
COPY redsocks.conf /etc/redsocks.conf

# Entrypoint script to configure iptables and start redsocks
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

CMD ["/entrypoint.sh"]
