Commit d2cf0aad authored by Kostas Chartsias's avatar Kostas Chartsias
Browse files

Dockerfile for MCP server

parent dfaccc81
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
FROM python:3.11-slim

# Set work directory
WORKDIR /app

# Copy dependency list first for caching
COPY requirements.txt .

# Install dependencies
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt

# Copy the rest of the app
COPY . /app/MCP_module

# Load environment variables (optional, can also use .env file)
ENV OpenOP_Backend=changeme
ENV OpenOP_ISI_BACKEND=changeme
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8000

# Run the app
CMD ["python", "-m", "MCP_module.app"]
 No newline at end of file