ai_detector / Dockerfile
arnetworkhouse's picture
Update Dockerfile
7a89cee verified
Raw
History Blame Contribute Delete
663 Bytes
FROM python:3.11-slim
WORKDIR /app
# system deps for pillow/torch
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# bake both models into image at build time
RUN python -c "from transformers import pipeline; pipeline('image-classification', model='umm-maybe/AI-image-detector')"
RUN python -c "from transformers import pipeline; pipeline('image-classification', model='prithivMLmods/Deep-Fake-Detector-v2-Model')"
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]