- 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)
10 lines
312 B
Text
10 lines
312 B
Text
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']
|