28 lines
533 B
Docker
28 lines
533 B
Docker
# Use Python 3.12 slim image
|
|
FROM python:3.12-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Set environment variables
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
FASTMCP_HOST=0.0.0.0 \
|
|
FASTMCP_PORT=8000
|
|
|
|
# Copy requirements first for better caching
|
|
COPY requirements.txt .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY modules/ ./modules/
|
|
COPY main.py .
|
|
|
|
# Expose port 8000 for the MCP server
|
|
EXPOSE 8000
|
|
|
|
# Run the MCP server
|
|
CMD ["python", "main.py"]
|