refactor: modernize project and improve error handling and documentation
This commit is contained in:
parent
e27bf2a098
commit
d87d0cce11
17 changed files with 1793 additions and 188 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue