Logo
Explore Help
Sign In
hjess/fil
1
0
Fork 0
You've already forked fil
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
58210207ea4de9fe480e1baa38a810670832966e
fil/Dockerfile.classify

14 lines
295 B
Docker
Raw Normal View History

feat: add taxonomy classify service + /classify endpoint - scripts/taxonomy.py: shared taxonomy with 14 categories, keyword scorer and classify_text() function - scripts/classify_server.py: FastAPI service — forwards to kreuzberg /extract, applies taxonomy, returns category/subcategory/confidence alongside full kreuzberg response - Dockerfile.classify: lightweight Python image for classify service - classify.nomad: Nomad job → classify.i80.dk - .gitea/workflows/classify.yml: CI/CD pipeline (build + deploy) - analyse_familie.py: refactored to import from taxonomy.py (no duplication) - .gitignore: exclude dokumenter_keywords.* and extract_all.log
2026-06-05 19:57:39 +02:00
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn[standard] httpx
COPY scripts/taxonomy.py .
COPY scripts/classify_server.py .
ENV KREUZBERG_URL=https://check.i80.dk
ENV PORT=8000
CMD ["sh", "-c", "uvicorn classify_server:app --host 0.0.0.0 --port ${PORT}"]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 50ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API