File size: 628 Bytes
0f06d85
 
9d4bd7c
0f06d85
 
178a66c
 
9d4bd7c
dc746f2
 
9d4bd7c
dc746f2
0f06d85
9d4bd7c
 
178a66c
9d4bd7c
dc746f2
0f06d85
9d4bd7c
0f06d85
 
9d4bd7c
dc746f2
0f06d85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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