Spaces:
Paused
Paused
| FROM python:3.9 | |
| # Hugging Face par non-root user zaroori hota hai (Port 7860 ke liye) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # JupyterLab install kar rahe hain bina cache ke (memory bachane ke liye) | |
| RUN pip install --no-cache-dir jupyterlab | |
| # Hugging Face ka default port expose kar rahe hain | |
| EXPOSE 7860 | |
| # Updated CMD command with lowercase --allow-root aur naye ServerApp arguments | |
| CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root", "--ServerApp.token=''", "--ServerApp.password=''"] | |