summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/curl/Dockerfile
blob: 336cb088a21ed955460d58f4b0a32a4ac1427213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM ubuntu:18.04

RUN set -x \
        && apt-get update \
        && apt-get install -y \
            curl \
        && rm -rf /var/lib/apt/lists/*

# Accept a host and port parameter.
ENV host localhost
ENV port 8080

# Spin until we make a successful request.
CMD ["sh", "-c", "while ! curl -v -i http://$host:$port; do true; done"]