Initial commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
|
||||
Reference in New Issue
Block a user