endpoint-libs 1.7.25

Common dependencies to be used with Pathscale projects, projects that use [endpoint-gen](https://github.com/pathscale/endpoint-gen), and projects that use honey_id-types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM rust:1.95 AS builder
WORKDIR /app

# Cache dependency compilation
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release --example ws_echo_server --features ws,s3-sync 2>&1 | tail -1

# Build the ws_echo_server example
COPY examples ./examples
RUN cargo build --release --example ws_echo_server --features ws,s3-sync

FROM debian:trixie-slim
COPY --from=builder /app/target/release/examples/ws_echo_server /app/ws_echo_server
EXPOSE 443
CMD ["/app/ws_echo_server"]