2025-11-06 15:51:15 +01:00
|
|
|
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"
|
|
|
|
|
|
2025-11-06 19:44:38 +01:00
|
|
|
COPY . /app
|
2025-11-06 19:46:49 +01:00
|
|
|
RUN cd /app && cargo build --release && cp target/release/ssh-tui /app/tui
|
2025-11-06 15:51:15 +01:00
|
|
|
|
|
|
|
|
EXPOSE 22
|
|
|
|
|
CMD ["/usr/local/bin/sshserver"]
|
|
|
|
|
|