File size: 551 Bytes
56689a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as a parent image
FROM python:3.12-slim

# Set the working directory in the container
WORKDIR /app

# Copy the requirements file and install dependencies
COPY requirements.txt ./
RUN pip install -r requirements.txt

# Copy the rest of the application code
COPY . .

# Make port 8123 available to the world outside this container
EXPOSE 8123

# Define environment variable
ENV INDEX_DIR=./index_dir

# Run mcp_server.py when the container launches
CMD ["python", "mcp_server.py", "--host", "0.0.0.0", "--port", "8123"]