File size: 832 Bytes
c5f122f
 
d6b2a9a
c5f122f
 
 
 
 
d6b2a9a
 
c5f122f
 
 
 
 
d6b2a9a
 
c5f122f
d6b2a9a
c5f122f
 
d6b2a9a
c5f122f
 
d6b2a9a
c5f122f
d6b2a9a
 
c5f122f
 
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
27
28
29
30
# Use an official Python runtime as a parent image
FROM python:3.10-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Create and set working directory
WORKDIR /app

# Install system dependencies (if any required for MCP endpoints)
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        build-essential \
        curl \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements and install Python dependencies
COPY requirements.txt ./
RUN pip install --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

# Copy application source
COPY . .

# Expose port for Streamlit (default 8501) and any API endpoints
EXPOSE 8501

# Default command to run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]