Initial commit

This commit is contained in:
2025-11-06 15:51:15 +01:00
commit af3f0ad0ad
6 changed files with 327 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
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"]