Spaces:
Sleeping
Sleeping
Download Dockerfile from Alok8383/My-AI-Coder: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/Alok8383/My-AI-Coder/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Alok8383/My-AI-Coder/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Alok8383/My-AI-Coder/resolve/main/Dockerfile
528 Bytes
| # Python 3.9 use karenge | |
| FROM python:3.9 | |
| # User setup (Security ke liye zaroori hai HF par) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # Dependencies install karo | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Code copy karo | |
| COPY --chown=user . . | |
| # Port 7860 kholo (Hugging Face is port par chalta hai) | |
| EXPOSE 7860 | |
| # App start karo | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |