Download Dockerfile from Dharanidhar1709/Repository-Analysis-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/Dharanidhar1709/Repository-Analysis-Assistant/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Dharanidhar1709/Repository-Analysis-Assistant/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Dharanidhar1709/Repository-Analysis-Assistant/resolve/main/Dockerfile
428 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install Node.js | |
| RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/* | |
| # Install Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Build frontend | |
| COPY frontend ./frontend | |
| RUN cd frontend && npm install && npm run build | |
| # Copy app | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port 7860"] |