mcp-stock-math / Dockerfile
Entz's picture
Upload 8 files
a5f67d6 verified
raw
history blame
627 Bytes
# Dockerfile
FROM python:3.10-slim
WORKDIR /app
# (Optional) system deps if you need them; safe to remove if not needed
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
# Install Python deps
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy code
COPY . /app
# Do NOT set STREAMLIT_SERVER_PORT here.
# Spaces will inject $PORT at runtime.
# Start Streamlit on the port Spaces provides, and bind to 0.0.0.0
CMD ["bash", "-lc", "streamlit run /app/frontend.py --server.port $PORT --server.address 0.0.0.0"]