21 lines
432 B
Docker
21 lines
432 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Python dependencies
|
|
COPY pyproject.toml .
|
|
RUN pip install --no-cache-dir .
|
|
|
|
# Copy application code
|
|
COPY src/ src/
|
|
|
|
# Create data directories
|
|
RUN mkdir -p data reports daily_briefings
|
|
|
|
# Default command
|
|
CMD ["python", "-m", "src.main", "run"] |