sentrythetaai / Dockerfile
mabdullahsibghatullah123's picture
Upload 11 files
261b0f7 verified
Raw History Blame Contribute Delete
465 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application source
COPY . .
# Hugging Face Spaces expects port 7860
ENV PORT=7860
ENV HOST=0.0.0.0
EXPOSE 7860
# Launch server
CMD ["python", "main.py", "run-server"]