actix-web-mongodb.dockerfile 319 B

123456789101112131415
  1. FROM rust:1.57.0
  2. ENV ACTIX_TECHEMPOWER_MONGODB_URL=mongodb://tfb-database:27017
  3. RUN apt-get update -yqq && apt-get install -yqq cmake g++
  4. ADD ./ /actix
  5. WORKDIR /actix
  6. RUN cargo clean
  7. RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --bin tfb-web-mongodb
  8. EXPOSE 8080
  9. CMD ./target/release/tfb-web-mongodb