File size: 504 Bytes
744b560
add9e92
915fb6a
add9e92
76694c7
add9e92
af8c796
add9e92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6967ee6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"]