mirror of
https://github.com/R0GGER/iperf3-map.git
synced 2026-11-11 01:20:06 +01:00
18 lines
338 B
Docker
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"]
|
|
|