tests/docker/asgi/Dockerfile
raw| 1 | FROM python:3.14-slim |
| 2 | |
| 3 | WORKDIR /build |
| 4 | |
| 5 | # Copy gunicorn source |
| 6 | COPY . /build/ |
| 7 | |
| 8 | # Install gunicorn from source |
| 9 | RUN pip install --no-cache-dir -e . |
| 10 | |
| 11 | # Copy test app |
| 12 | WORKDIR /app |
| 13 | COPY tests/docker/asgi/app.py /app/ |
| 14 | |
| 15 | # Expose HTTP port |
| 16 | EXPOSE 8000 |
| 17 | |
| 18 | CMD ["gunicorn", "--worker-class", "asgi", "--bind", "0.0.0.0:8000", "app:app"] |