# Development Dockerfile with hot reloading
FROM rust:1.75-slim
# Install development dependencies
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install cargo-watch for hot reloading
RUN cargo install cargo-watch
# Copy Cargo files
COPY Cargo.toml Cargo.lock ./
# Copy source code
COPY src ./src
COPY config ./config
COPY tests ./tests
# Default command for development
CMD ["cargo", "watch", "-x", "run"]