init commit, added server and client
This commit is contained in:
27
mcpServer/Dockerfile
Normal file
27
mcpServer/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user