Spaces:
Sleeping
Sleeping
File size: 659 Bytes
ed21595 e121f2e d7e1bdf e121f2e 69513d7 e121f2e ed21595 e121f2e d7e1bdf 391b772 e121f2e 391b772 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.11-slim-bookworm
# Only Redis + supervisor needed (no compilers — we use the public Piston API)
RUN apt-get update && apt-get install -y --no-install-recommends \
redis-server \
supervisor \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Supervisor config
RUN mkdir -p /etc/supervisor/conf.d/ && \
cp supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV PYTHONUNBUFFERED=1
# Hugging Face Spaces port
EXPOSE 7860
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |