cloudflared-mirror/ssh_server_tests/Dockerfile

15 lines
462 B
Docker
Raw Permalink Normal View History

2019-09-18 16:33:13 +00:00
FROM python:3-buster
2021-08-04 14:26:13 +00:00
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb \
&& dpkg -i cloudflared-linux-amd64.deb
2019-09-18 16:33:13 +00:00
RUN pip install pexpect
COPY tests.py .
COPY ssh /root/.ssh
RUN chmod 600 /root/.ssh/id_rsa
ARG SSH_HOSTNAME
RUN bash -c 'sed -i "s/{{hostname}}/${SSH_HOSTNAME}/g" /root/.ssh/authorized_keys_config'
RUN bash -c 'sed -i "s/{{hostname}}/${SSH_HOSTNAME}/g" /root/.ssh/short_lived_cert_config'