12345678910111213141516 |
- FROM rust:1.77
- WORKDIR /trillium
- COPY src src
- COPY templates templates
- COPY Cargo.toml Cargo.toml
- COPY Cargo.lock Cargo.lock
- EXPOSE 8080
- ENV RUSTFLAGS="-C target-cpu=native"
- ENV PORT=8080
- ENV HOST=0.0.0.0
- ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
- RUN cargo build --release --features jemallocator,async-std
- CMD ["./target/release/trillium-techempower"]
|