FROM rust:1.72 RUN apt-get update -yqq && apt-get install -yqq cmake g++ ADD ./ /may WORKDIR /may RUN cargo clean RUN RUSTFLAGS="-C target-cpu=native" cargo build --release EXPOSE 8080 CMD ./target/release/may-minihttp