File: Dockerfile

package info (click to toggle)
gunicorn 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,048 kB
  • sloc: python: 43,889; sh: 285; javascript: 54; makefile: 38
file content (25 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.

FROM python:3.12-slim

WORKDIR /app

# Copy gunicorn source
COPY . /app/gunicorn-src

# Install gunicorn and dependencies
# setproctitle is needed for process title changes
RUN pip install --no-cache-dir /app/gunicorn-src setproctitle

# Copy example files
COPY examples/dirty_example/ /app/examples/dirty_example/

WORKDIR /app

# Expose the port
EXPOSE 8000

# Default command - run the example tests
CMD ["python", "-m", "pytest", "-v", "examples/dirty_example/"]