Dockerfile 445 B

123456789101112131415
  1. FROM python:3-buster
  2. RUN wget https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb \
  3. && dpkg -i cloudflared-stable-linux-amd64.deb
  4. RUN pip install pexpect
  5. COPY tests.py .
  6. COPY ssh /root/.ssh
  7. RUN chmod 600 /root/.ssh/id_rsa
  8. ARG SSH_HOSTNAME
  9. RUN bash -c 'sed -i "s/{{hostname}}/${SSH_HOSTNAME}/g" /root/.ssh/authorized_keys_config'
  10. RUN bash -c 'sed -i "s/{{hostname}}/${SSH_HOSTNAME}/g" /root/.ssh/short_lived_cert_config'