trillium-async-std.dockerfile 399 B

12345678910111213141516
  1. FROM rust:1.77
  2. WORKDIR /trillium
  3. COPY src src
  4. COPY templates templates
  5. COPY Cargo.toml Cargo.toml
  6. COPY Cargo.lock Cargo.lock
  7. EXPOSE 8080
  8. ENV RUSTFLAGS="-C target-cpu=native"
  9. ENV PORT=8080
  10. ENV HOST=0.0.0.0
  11. ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
  12. RUN cargo build --release --features jemallocator,async-std
  13. CMD ["./target/release/trillium-techempower"]