InvestingTest / Dockerfile
Mbonea's picture
Fix HF Docker deps and expose remote MCP at /mcp.
178a66c
Raw
History Blame Contribute Delete
628 Bytes
# Hugging Face Spaces Docker runtime
FROM python:3.10.0
ENV UWEKEZAJI_DATA_DIR=/data/InvestingTest
ENV SQLITE_DB_PATH=/data/InvestingTest/db.sqlite3
ENV UWEKEZAJI_MCP_USE_LOCAL=1
ENV UWEKEZAJI_MCP_EMBEDDED=1
# Set the working directory
WORKDIR /srv
# Copy requirements file first to leverage caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . /srv
RUN mkdir -p /data/InvestingTest
CMD python -m uvicorn main:app --workers 1 --host 0.0.0.0 --port 7860 --log-level debug
# Expose port
EXPOSE 7860