1 2 3 4 5 6 7 8 9 10
# 1. This tells docker to use the Rust official image FROM rust:1.74 as builder # 2. Copy the files in your machine to the Docker image COPY ./ ./ # Build your program for release RUN cargo build --release ENTRYPOINT [ "/target/release/chess-tui" ]