Created
June 22, 2020 00:03
-
-
Save patryk4815/6170fe47f8edf211c62948c3be08bd35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get -y update && apt-get install -y \ | |
autoconf \ | |
bison \ | |
flex \ | |
gcc \ | |
g++ \ | |
git \ | |
libprotobuf-dev \ | |
libnl-route-3-dev \ | |
libtool \ | |
make \ | |
pkg-config \ | |
protobuf-compiler \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN apt-get update \ | |
&& apt-get install -y ssh \ | |
build-essential \ | |
gcc \ | |
g++ \ | |
gdb \ | |
clang \ | |
cmake \ | |
rsync \ | |
tar \ | |
python \ | |
&& apt-get clean | |
RUN ( \ | |
echo 'LogLevel DEBUG2'; \ | |
echo 'PermitRootLogin yes'; \ | |
echo 'PasswordAuthentication yes'; \ | |
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \ | |
) > /etc/ssh/sshd_config_test_clion \ | |
&& mkdir /run/sshd | |
RUN useradd -m user \ | |
&& yes password | passwd user | |
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment