gunicorn/tests/docker/asgi/Dockerfile
Benoit Chesneau 6575d86251 Add docker integration tests for simple ASGI (HTTP protocol)
Tests the ASGI worker with direct HTTP requests without uWSGI protocol.
Includes tests for GET, POST, query strings, path handling, keepalive,
large bodies, and custom headers.
2026-01-25 15:03:12 +01:00

19 lines
324 B
Docker

FROM python:3.11-slim
WORKDIR /build
# Copy gunicorn source
COPY . /build/
# Install gunicorn from source
RUN pip install --no-cache-dir -e .
# Copy test app
WORKDIR /app
COPY tests/docker/asgi/app.py /app/
# Expose HTTP port
EXPOSE 8000
CMD ["gunicorn", "--worker-class", "asgi", "--bind", "0.0.0.0:8000", "app:app"]