notebooklm-py / Dockerfile
ASEM12345's picture
Upload Dockerfile with huggingface_hub
dd07210 verified
raw
history blame contribute delete
714 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Create non-root user for HF Spaces
RUN useradd -m -u 1000 user
USER user
# Set environment variables
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
NOTEBOOKLM_HOME=/home/user/.notebooklm \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_SERVER_PORT=7860
# Expose Gradio port (FastAPI is mounted on same port)
EXPOSE 7860
CMD ["python", "app.py"]