File size: 621 Bytes
14c956c
 
 
 
 
 
 
 
 
 
 
a900571
 
 
 
14c956c
 
a900571
 
 
 
 
c2b2b00
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.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