CryptoSentinel_AI / Dockerfile
mgbam's picture
Update Dockerfile
f1abbe6 verified
raw
history blame
629 Bytes
# ---------- CryptoSentinel AI ----------
FROM python:3.10-slim
# Faster installs & smaller image
ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1
# System deps for torch wheels on slim images
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy source
COPY app /app
WORKDIR /app
# Expose for Spaces (any port works; 7860 is convention)
EXPOSE 7860
# Use gunicorn+uvicorn worker for robustness
CMD ["gunicorn", "main:app", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:7860", "--log-level=info"]