first commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM debian:stable-slim
|
||||
|
||||
MAINTAINER BeN
|
||||
|
||||
RUN apt-get clean && apt-get update && apt-get -y upgrade
|
||||
|
||||
RUN apt-get install -y \
|
||||
openssh-server
|
||||
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd -rm -d /home/ben -s /bin/bash -g root -G sudo -u 1000 ben
|
||||
|
||||
RUN echo 'ben:ben' | chpasswd
|
||||
|
||||
RUN service ssh start
|
||||
|
||||
EXPOSE 22
|
||||
|
||||
CMD ["/usr/sbin/sshd","-D"]
|
||||
Reference in New Issue
Block a user