mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-18 08:34:35 +03:00
31ae569aa2
Standalone Rust/axum HTTP server + Apps Script-side CodeFull.gs for users who want to deploy a remote tunnel node. All new files; no changes to the main Rust crate. This is part 1 of 3 of the full-tunnel feature — it adds scaffolding that users can opt into once the Rust-side Mode::Full lands in #94.
13 lines
353 B
Docker
13 lines
353 B
Docker
FROM rust:1.85-slim AS builder
|
|
WORKDIR /app
|
|
COPY Cargo.toml ./
|
|
COPY src/ ./src/
|
|
RUN cargo build --release --bin tunnel-node
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /app/target/release/tunnel-node /usr/local/bin/
|
|
ENV PORT=8080
|
|
EXPOSE 8080
|
|
CMD ["tunnel-node"]
|