FROM python:3.13-slim WORKDIR /app RUN apt-get update && apt-get install -y \ git gcc python3-dev build-essential \ && rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/hassancs91/PyRunner.git . RUN pip install --no-cache-dir -r requirements.txt ENV PORT=7860 ENV DEBUG=False ENV ALLOWED_HOSTS=* ENV SECRET_KEY=django-insecure-pyrunner-demo-key-123456789 ENV ENCRYPTION_KEY=5fP8s7xYjN0QwV2rT6uI4oP9aS3dF7gH1jK5lM8nB2c= EXPOSE 7860 CMD python manage.py migrate && \ python manage.py collectstatic --noinput && \ gunicorn pyrunner.wsgi:application --bind 0.0.0.0:7860