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

15
Dockerfile.dev Normal file
View File

@@ -0,0 +1,15 @@
# Development stage for Rust API
FROM rust:latest AS builder
WORKDIR /usr/src/app
COPY . .
RUN cargo install cargo-watch
RUN cargo build --release
# Runtime stage for development
FROM rust:latest
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/target/release/api_rust /usr/local/bin/api_rust
COPY --from=builder /usr/local/cargo/bin/cargo-watch /usr/local/bin/cargo-watch
COPY . .
EXPOSE 9552
CMD ["cargo-watch", "-x", "run"]