Download Dockerfile from deeep-sec/ai-content-detector: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/deeep-sec/ai-content-detector/resolve/main/Dockerfile
- Command line
-
hf download hf://deeep-sec/ai-content-detector/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/deeep-sec/ai-content-detector/resolve/main/Dockerfile
800 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| COPY --chown=user:user . . | |
| RUN mkdir -p data/uploads custom_models && \ | |
| chown -R user:user /app | |
| USER user | |
| EXPOSE 10000 8000 7860 | |
| CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-10000}"] | |