Torxy / Dockerfile
MB-IDK's picture
Update Dockerfile
d3b9395 verified
raw
history blame contribute delete
886 Bytes
# ----------------------------
# Dockerfile HF-ready Torxy
# ----------------------------
FROM dockage/tor-privoxy:latest
# ---- Variables ----
ENV PRIVOXY_PORT=8118
# ---- Installer curl + tar (pour Bore) ----
RUN apk add --no-cache curl tar
# ---- Télécharger Bore v0.5.2 x86_64 musl ----
RUN curl -fsSL https://github.com/ekzhang/bore/releases/download/v0.5.2/bore-v0.5.2-x86_64-unknown-linux-musl.tar.gz \
-o /tmp/bore.tar.gz && \
tar -xzf /tmp/bore.tar.gz -C /usr/local/bin && \
chmod +x /usr/local/bin/bore && \
rm /tmp/bore.tar.gz
# ---- Script de démarrage ----
RUN printf '#!/bin/sh\n\
echo "[+] Tor + Privoxy ready (%s)";\n\
echo "[+] Publishing proxy via bore.pub";\n\
exec bore pub %s --to bore.pub\n' "$PRIVOXY_PORT" "$PRIVOXY_PORT" > /start.sh && chmod +x /start.sh
# ---- Expose HTTP proxy port ----
EXPOSE 8118
# ---- CMD ----
CMD ["/start.sh"]