ntex-db.dockerfile 318 B

12345678910111213141516
  1. FROM rust:latest
  2. # Disable simd at jsonescape
  3. # ENV CARGO_CFG_JSONESCAPE_DISABLE_AUTO_SIMD=
  4. RUN apt-get update -yqq && apt-get install -yqq cmake g++
  5. ADD ./ /ntex
  6. WORKDIR /ntex
  7. RUN cargo clean
  8. RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="tokio"
  9. EXPOSE 8080
  10. CMD ./target/release/ntex-db