refactor: modernize project and improve error handling and documentation

This commit is contained in:
Patryk Hegenberg 2026-02-11 15:24:26 +01:00
parent e27bf2a098
commit d87d0cce11
17 changed files with 1793 additions and 188 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM python:3.11-slim-bookworm
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvbin/uv
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN /uvbin/uv pip install --system --requirement pyproject.toml
COPY . .
RUN mkdir -p output config .cache && chmod -R 777 output config .cache
ENV PYTHONPATH=.
ENV INTERVAL=3600
ENV UV_CACHE_DIR=/app/.cache
CMD ["/uvbin/uv", "run", "python", "main.py", "run"]