mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-05-07 01:56:46 +00:00
Just run "docker-compose -f docker-compose.seed.yml up" to seed (you need to "docker-compose up -d" first)
16 lines
307 B
Docker
16 lines
307 B
Docker
FROM python:3.9-slim
|
|
|
|
# add apache bench (ab) tool
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
apache2-utils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /seed
|
|
|
|
COPY . .
|
|
|
|
# create POST data files with ab friendly formats
|
|
RUN python make-data.py
|
|
|
|
CMD /seed/generate-votes.sh |