2023-02-15 12:59:53 +01:00
|
|
|
FROM ubuntu
|
|
|
|
|
2023-02-23 06:31:52 +01:00
|
|
|
RUN apt update && apt install tree nano openssh-server iproute2 sudo -y
|
2024-05-16 16:39:43 +02:00
|
|
|
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo test
|
2023-02-15 12:59:53 +01:00
|
|
|
RUN echo 'test:test' | chpasswd
|
|
|
|
RUN service ssh start
|
|
|
|
|
2023-02-16 08:51:46 +01:00
|
|
|
RUN mkdir -p /home/ubuntu/playground
|
|
|
|
COPY assets/ /home/ubuntu/playground/
|
2024-04-18 14:43:01 +02:00
|
|
|
RUN chown -R test /home/ubuntu/
|
2023-02-16 08:51:46 +01:00
|
|
|
|
2023-02-15 12:59:53 +01:00
|
|
|
EXPOSE 22
|
|
|
|
|
|
|
|
# Start the OpenSSH server
|
|
|
|
CMD ["/usr/sbin/sshd", "-D"]
|