This commit is contained in:
2025-06-08 13:27:50 -04:00
commit 41c4eca4f5
18 changed files with 2656 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
# Build stage
FROM rust:latest AS builder
WORKDIR /usr/src/app
COPY . .
RUN cargo install cargo-watch
RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
WORKDIR /usr/local/bin
COPY --from=builder /usr/src/app/target/release/api_rust .
EXPOSE 9552
CMD ["./api_rust"]