From 7995282f65183b0a615c224a3ea13eeb10a1e828 Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Sun, 28 Dec 2025 00:45:12 +0100 Subject: Kind of Initial Comment Implement basic way of testing various http methods via simple cli interface. Also write basic config file kind of parser. --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d88ceea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM lukemathwalker/cargo-chef:latest AS chef +WORKDIR /app + +FROM chef AS planner +COPY . . +RUN cargo chef prepare --recipe-path recipe.json + +FROM chef AS builder +COPY --from=planner /app/recipe.json recipe.json +RUN cargo chef cook --release --recipe-path recipe.json +COPY . . +RUN cargo build --release --bin macmeeting_back + +FROM debian:bookworm-slim AS runtime +WORKDIR /app + +RUN apt-get update && apt-get install -y \ + libssl3 \ + libpq-dev \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +COPY --from=builder /app/target/release/macmeeting_back /usr/local/bin + +ENTRYPOINT ["/usr/local/bin/macmeeting_back"] -- cgit v1.2.3