Dockerfile 307 B

12345678910111213141516
  1. FROM python:3.9-slim
  2. # add apache bench (ab) tool
  3. RUN apt-get update \
  4. && apt-get install -y --no-install-recommends \
  5. apache2-utils \
  6. && rm -rf /var/lib/apt/lists/*
  7. WORKDIR /seed
  8. COPY . .
  9. # create POST data files with ab friendly formats
  10. RUN python make-data.py
  11. CMD /seed/generate-votes.sh