Files
tui-cv/Dockerfile
dcorral b988a7a3b3
All checks were successful
Deploy to VPS / deploy (push) Successful in 1m1s
Dockerfile and main.rs changes revert
2025-11-06 22:02:02 +01:00

17 lines
431 B
Docker

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 . /app
RUN cd /app && cargo build --release && cp target/release/ssh-tui /app/tui && chmod +x /app/tui
EXPOSE 22
CMD ["/usr/local/bin/sshserver"]