Spaces:
Sleeping

File size: 618 Bytes
7c87115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"]