Download Dockerfile from RisetKu/EduScam: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/RisetKu/EduScam/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RisetKu/EduScam/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RisetKu/EduScam/resolve/main/Dockerfile
456 Bytes
| FROM python:3.10 | |
| # Create non-root user | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files and assign ownership | |
| COPY --chown=user:user . . | |
| # Switch to non-root user | |
| USER user | |
| # Expose port for Gradio frontend | |
| EXPOSE 7860 | |
| # Launch Gradio (which will internally launch FastAPI) | |
| CMD ["python", "main_gradio.py"] | |