Add Dockerfile
This commit is contained in:
		
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
FROM ubuntu:latest
 | 
			
		||||
 | 
			
		||||
RUN apt update && apt install  openssh-server sudo -y
 | 
			
		||||
 | 
			
		||||
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test 
 | 
			
		||||
 | 
			
		||||
RUN  echo 'test:test' | chpasswd
 | 
			
		||||
 | 
			
		||||
RUN service ssh start
 | 
			
		||||
 | 
			
		||||
EXPOSE 22
 | 
			
		||||
 | 
			
		||||
CMD ["/usr/sbin/sshd","-D"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user