14 lines
350 B
Docker
14 lines
350 B
Docker
FROM ubuntu
|
|
|
|
RUN apt update && apt install tree nano 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
|
|
|
|
RUN mkdir -p /home/ubuntu/playground
|
|
COPY assets/ /home/ubuntu/playground/
|
|
|
|
EXPOSE 22
|
|
|
|
# Start the OpenSSH server
|
|
CMD ["/usr/sbin/sshd", "-D"]
|