acp/Dockerfile

15 lines
342 B
Text
Raw Normal View History

2023-02-15 12:59:53 +01:00
FROM ubuntu
2023-02-16 08:17:21 +01:00
RUN mkdir -p /home/ubuntu/playground
COPY assets/* /home/ubuntu/playground/
2023-02-15 12:59:53 +01:00
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
# Start the OpenSSH server
CMD ["/usr/sbin/sshd", "-D"]