# Use the latest official Rust image to ensure support for new editions.
FROM rust:latest
# Set the working directory inside the container
WORKDIR /usr/src/zoro
# Copy the entire project into the container.
# This is simpler than a multi-stage build for getting started.
COPY . .
# Build the final, optimized binary. This also caches dependencies.
RUN cargo build --release
# Set the command that will run when the container starts.
# We run the compiled binary directly.
CMD [ "/usr/src/zoro/target/release/zoro" ]