Spaces:
Runtime error
Runtime error
Delete Dockerfile
Browse files- Dockerfile +0 -34
Dockerfile
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# Install curl for health checks
|
| 6 |
-
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
| 7 |
-
|
| 8 |
-
# Copy and install dependencies
|
| 9 |
-
COPY requirements.txt .
|
| 10 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
-
|
| 12 |
-
# Copy application files
|
| 13 |
-
COPY edgar_client.py .
|
| 14 |
-
COPY financial_analyzer.py .
|
| 15 |
-
COPY mcp_server_fastmcp.py .
|
| 16 |
-
COPY app.py .
|
| 17 |
-
|
| 18 |
-
# Copy templates directory
|
| 19 |
-
COPY templates/ templates/
|
| 20 |
-
|
| 21 |
-
# Expose port
|
| 22 |
-
EXPOSE 7860
|
| 23 |
-
|
| 24 |
-
# Environment variables
|
| 25 |
-
ENV PYTHONUNBUFFERED=1
|
| 26 |
-
ENV PYTHONDONTWRITEBYTECODE=1
|
| 27 |
-
ENV PORT=7860
|
| 28 |
-
ENV HOST=0.0.0.0
|
| 29 |
-
|
| 30 |
-
# Health check
|
| 31 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 CMD curl -f http://localhost:7860/ || exit 1
|
| 32 |
-
|
| 33 |
-
# Run FastAPI app with integrated MCP server
|
| 34 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|