Enhance Docker and Compose configurations; add health check endpoint and caching improvements
- Updated Dockerfile to include FINN_CACHE_PATH and create data directory. - Modified docker-compose.prod.yml to expose port 8010 and adjust resource limits. - Updated docker-compose.yml to include FINN_CACHE_PATH and ensure proper port mapping. - Added health check endpoint in http_server.py for container orchestration. - Improved caching logic in analysis.py and service.py for similar units. - Refined scoring.py with updated scoring model and constants for better accuracy. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
+4
-1
@@ -41,7 +41,10 @@ COPY finn_eiendom /app/finn_eiendom
|
||||
ENV PATH="/venv/bin:$PATH" \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
MCP_HOST=0.0.0.0 \
|
||||
MCP_PORT=8010
|
||||
MCP_PORT=8010 \
|
||||
FINN_CACHE_PATH=/app/data/finn.sqlite
|
||||
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 8010
|
||||
|
||||
Reference in New Issue
Block a user