1 2 3 4 5 6 7 8 9
FROM rust:latest as builder WORKDIR /app COPY . . RUN cargo build --release EXPOSE 3000 CMD ["cargo", "run", "--release"]