FROM dcorral3/go-ssh-server-command # Install Rust and build the TUI RUN apk add --no-cache curl && \ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ . ~/.cargo/env && \ apk add --no-cache build-base ENV PATH="/root/.cargo/bin:$PATH" COPY Cargo.toml /Cargo.toml COPY main.rs /main.rs RUN cd / && cargo build --release && mkdir -p /app && cp /target/release/ssh-tui /app/tui EXPOSE 22 CMD ["/usr/local/bin/sshserver"]