2026-01-20 16:40:08 +00:00
|
|
|
FROM python:3.12-slim
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-01-20 18:27:17 +00:00
|
|
|
# Install msmtp for email notifications
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
|
msmtp \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2026-01-20 16:40:08 +00:00
|
|
|
# Install dependencies
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
# Copy application code
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
# Create data directory for SQLite database
|
|
|
|
|
RUN mkdir -p /app/data
|
|
|
|
|
|
|
|
|
|
# Run the scraper
|
|
|
|
|
CMD ["python", "main.py"]
|