FROM ubuntu:latest WORKDIR app COPY app ./app RUN chmod +x /app/app && apt-get update && apt-get install -y curl ca-certificates COPY <<-"EOF" /app/resolv.conf nameserver 1.1.1.1 nameserver 1.0.0.1 nameserver 2606:4700:4700::1111 nameserver 2606:4700:4700::1002 EOF COPY --chmod=755 <<-"EOF" /entrypoint.sh #!/bin/bash cat /app/resolv.conf > /etc/resolv.conf sleep 3 exec "$@" EOF ENTRYPOINT ["/entrypoint.sh"] CMD ["/app/app", "-output", "/app/results.json", "-timeout", "1s", "-workers", "100"]