Files
iperf3-map/Dockerfile
T
rogier 27cbbaadef Use gunicorn
use gunicorn, which is a production-ready WSGI server
2025-11-28 20:52:55 +01:00

18 lines
338 B
Docker

FROM python:3.9-slim
RUN apt-get update && apt-get install -y iperf3 ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
ENV PYTHONUNBUFFERED=1
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-w", "1", "app:app"]