deepshield-api / Dockerfile
vanshpatil16's picture
DeepShield API — 7-detector image deepfake detection
6be0044
Raw
History Blame Contribute Delete
505 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ ./backend/
COPY models/ ./models/
ENV PORT=7860 \
HF_HOME=/app/.cache/huggingface \
TRANSFORMERS_CACHE=/app/.cache/huggingface \
TORCH_HOME=/app/.cache/torch
EXPOSE 7860
CMD uvicorn backend.main:app --host 0.0.0.0 --port ${PORT}