actix.dockerfile 223 B

12345678910111213
  1. FROM rust:1.58
  2. RUN apt-get update -yqq && apt-get install -yqq cmake g++
  3. ADD ./ /actix
  4. WORKDIR /actix
  5. RUN cargo clean
  6. RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
  7. EXPOSE 8080
  8. CMD ./target/release/tfb-web