NoteDiscovery/mcp_server_http/Dockerfile

23 lines
543 B
Docker
Raw Normal View History

2026-07-14 01:20:19 +00:00
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"]