File size: 718 Bytes
fda4b64 472833f fda4b64 12d2187 472833f f0197e9 3493c8b fda4b64 3493c8b f2757ec fda4b64 472833f f0197e9 6d2e051 397c16a f0197e9 fda4b64 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM python:3.10-slim
# Install Redis + Supervisor
RUN apt-get update && apt-get install -y redis-server supervisor && rm -rf /var/lib/apt/lists/*
# Install deps
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Copy app
COPY . /app
WORKDIR /app
# ✅ Create config in standard location (HF builder compatible)
RUN mkdir -p /etc/supervisor/conf.d
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# ✅ Explicitly expose only port 7860
EXPOSE 7860
# ✅ Use supervisord directly with full path
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |