| 1 |
FROM python:3.14-slim |
| 2 |
|
| 3 |
WORKDIR /app |
| 4 |
|
| 5 |
# Install h2 for HTTP/2 support and httpx for testing |
| 6 |
RUN pip install --no-cache-dir h2 httpx |
| 7 |
|
| 8 |
# Copy gunicorn source and install |
| 9 |
COPY . /app/gunicorn-src |
| 10 |
RUN pip install /app/gunicorn-src |
| 11 |
|
| 12 |
# Copy example app |
| 13 |
COPY examples/http2_features /app/http2_features |
| 14 |
|
| 15 |
# Copy SSL certificates |
| 16 |
COPY examples/server.crt /app/certs/server.crt |
| 17 |
COPY examples/server.key /app/certs/server.key |
| 18 |
|
| 19 |
ENV PYTHONPATH=/app |
| 20 |
|
| 21 |
EXPOSE 8443 |
| 22 |
CMD ["gunicorn", "http2_features.http2_app:app", "-c", "http2_features/gunicorn_conf.py"] |