Spaces:
Sleeping

notebooklm-mcp-cli / Dockerfile
marqueeH's picture
Upload 121 files
7c87115 verified
Raw History Blame Contribute Delete
618 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies (including uvicorn for the server)
COPY pyproject.toml .
COPY src/ src/
COPY README.md .
# Install the package
RUN pip install --no-cache-dir . uvicorn
# Create a non-root user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Setup environment variables for Hugging Face Spaces
ENV NOTEBOOKLM_MCP_PORT=7860
ENV NOTEBOOKLM_MCP_HOST=0.0.0.0
ENV NOTEBOOKLM_MCP_TRANSPORT=sse
# Expose the port
EXPOSE 7860
# Run the server
CMD ["notebooklm-mcp", "--transport", "sse", "--host", "0.0.0.0", "--port", "7860"]