xitca-web-diesel.dockerfile 242 B

123456789101112
  1. FROM rust:1.58
  2. ADD ./ /xitca-web
  3. WORKDIR /xitca-web
  4. RUN rustup default nightly-2022-01-26
  5. RUN cargo clean
  6. RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --bin xitca-web-diesel
  7. EXPOSE 8080
  8. CMD ./target/release/xitca-web-diesel