23 lines
543 B
Docker
23 lines
543 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy requirements from the mcp_server_http directory
|
|
COPY mcp_server_http/requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the original mcp_server to get the client implementation
|
|
COPY mcp_server/ ./mcp_server/
|
|
|
|
# Copy the HTTP server
|
|
COPY mcp_server_http/ ./mcp_server_http/
|
|
|
|
ENV PORT=8001
|
|
ENV HOST=0.0.0.0
|
|
# Point this to the NoteDiscovery API backend
|
|
ENV NOTEDISCOVERY_URL=http://backend:8000
|
|
|
|
EXPOSE 8001
|
|
|
|
CMD ["python", "-m", "mcp_server_http.server"]
|