Remove private ssh key from container.
continuous-integration/drone/push Build is passing Details

master
Thomas Bellembois 2 years ago
parent 9a22371e5b
commit 49ca1320fc

@ -12,7 +12,6 @@ RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config
RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/
COPY ./id_rsa.pub /root/.ssh/
RUN cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*

Loading…
Cancel
Save