| 1 |
FROM python:3.14-slim |
| 2 |
|
| 3 |
WORKDIR /app |
| 4 |
|
| 5 |
# Copy gunicorn source |
| 6 |
COPY . /app/gunicorn-src |
| 7 |
|
| 8 |
# Install gunicorn and test dependencies |
| 9 |
# setproctitle is needed for process title changes (master, dirty-arbiter, etc.) |
| 10 |
RUN pip install --no-cache-dir /app/gunicorn-src pytest requests setproctitle |
| 11 |
|
| 12 |
# Copy test app files |
| 13 |
COPY tests/docker/dirty_arbiter/app.py /app/ |
| 14 |
COPY tests/docker/dirty_arbiter/gunicorn_conf.py /app/ |
| 15 |
|
| 16 |
# Install procps for process inspection |
| 17 |
RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/* |
| 18 |
|
| 19 |
# Default command - run gunicorn |
| 20 |
CMD ["gunicorn", "app:application", "-c", "gunicorn_conf.py"] |