Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
- app.py: unified app – ntfy subscriber runs as background thread, FastAPI serves REST API (/api/messages) and static frontend - static/index.html: terminal-style notification table with sortable columns, drag & drop column reorder, column visibility toggle (localStorage), text search, forwarded-only filter, auto-refresh every 30s - All ntfy fields stored: id, received_at, ntfy_time, topic, title, message, priority, tags, forwarded - /data volume for persistent SQLite DB - Port 8000 exposed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
408 B
Docker
23 lines
408 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app.py filter.py ./
|
|
COPY static/ static/
|
|
|
|
VOLUME ["/data"]
|
|
|
|
ENV SOURCE_URL=http://192.168.123.77/albert
|
|
ENV TARGET_URL=
|
|
ENV TARGET_TOKEN=
|
|
ENV LOG_LEVEL=INFO
|
|
ENV RECONNECT_DELAY=10
|
|
ENV DB_PATH=/data/logwatch.db
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|