Preparing file structure for multi service build and host.

This commit is contained in:
Christbru 2025-10-18 15:12:42 -05:00
commit 3a761e3eb1
16 changed files with 89 additions and 17 deletions

12
rust-engine/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
# rust-engine/Dockerfile
# --- Stage 1: Builder ---
FROM rust:1.7-slim as builder
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
# --- Stage 2: Final Image ---
FROM debian:buster-slim
COPY --from=builder /usr/src/app/target/release/rust-engine /usr/local/bin/rust-engine
EXPOSE 8000
CMD ["rust-engine"]