| 1 |
# |
| 2 |
# This file is part of gunicorn released under the MIT license. |
| 3 |
# See the NOTICE for more information. |
| 4 |
|
| 5 |
FROM python:3.14-slim |
| 6 |
|
| 7 |
WORKDIR /app |
| 8 |
|
| 9 |
# Copy gunicorn source |
| 10 |
COPY . /app/gunicorn-src |
| 11 |
|
| 12 |
# Install gunicorn and dependencies |
| 13 |
# setproctitle is needed for process title changes |
| 14 |
RUN pip install --no-cache-dir /app/gunicorn-src setproctitle |
| 15 |
|
| 16 |
# Copy example files |
| 17 |
COPY examples/dirty_example/ /app/examples/dirty_example/ |
| 18 |
|
| 19 |
WORKDIR /app |
| 20 |
|
| 21 |
# Expose the port |
| 22 |
EXPOSE 8000 |
| 23 |
|
| 24 |
# Default command - run the example tests |
| 25 |
CMD ["python", "-m", "pytest", "-v", "examples/dirty_example/"] |