Phase 2.1: Backend project initialized with Docker configuration
- Created Cargo.toml with all required dependencies - Implemented health/ready endpoints - Added Docker configuration (production + development) - Configured docker-compose with resource limits - Set up MongoDB service with persistence - Verified build (cargo check passed) - Prepared monorepo structure for mobile/web/shared Next: Phase 2.2 (MongoDB connection and models)
This commit is contained in:
parent
4dca44dbbe
commit
1e38fe3ace
11 changed files with 388 additions and 80 deletions
10
backend/docker/Dockerfile.dev
Normal file
10
backend/docker/Dockerfile.dev
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM rust:1.75-alpine
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache musl-dev pkgconf openssl-dev curl wget git pkgconfig
|
||||
RUN cargo install cargo-watch
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
RUN mkdir src && echo 'fn main() {}' > src/main.rs
|
||||
RUN cargo build && rm -rf src
|
||||
COPY src ./src
|
||||
EXPOSE 8000
|
||||
CMD ['cargo-watch', '-x', 'run']
|
||||
Loading…
Add table
Add a link
Reference in a new issue