rathole Docker & Self-Hosted Deployment

GitHub

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.

14,347 stars Rust Rust 1 file ยท ~5,739 tokens #firewall#frp#http#nat#network#ngrok#noise#noise-protocol
1. Pull Image (DOCKERHUB) docker pull rathole-org/rathole:latest
2. Docker Run (1-Click Launch) docker run -d --name rathole --restart always rathole-org/rathole:latest
3. Podman Run podman run -d --name rathole --restart always rathole-org/rathole:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/rathole-org/rathole:latest
5. ORAS Pull (OCI Artifact) oras pull rathole-org/rathole:latest
Dockerfile
FROM rust:bookworm as builder
RUN apt update && apt install -y libssl-dev
WORKDIR /home/rust/src
COPY . .
ARG FEATURES
RUN cargo build --locked --release --features ${FEATURES:-default}
RUN mkdir -p build-out/
RUN cp target/release/rathole build-out/



FROM gcr.io/distroless/cc-debian12
WORKDIR /app
COPY --from=builder /home/rust/src/build-out/rathole .
USER 1000:1000
ENTRYPOINT ["./rathole"]