ai-detector-backend / Dockerfile
Alstears's picture
Upload 9 files
6f6024d verified
Raw
History Blame Contribute Delete
451 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
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 . .
# Set permission for SQLite database
RUN chmod -R 777 /app
# Hugging Face Spaces default port is 7860
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "7860"]