# # Use the official Nextcloud image as the base image | |
# FROM ubuntu:latest | |
# # Install additional PHP modules if required (uncomment and add more if needed) | |
# RUN apt-get update && apt-get upgrade -y | |
# RUN apt-get install docker-compose -y | |
# EXPOSE 7860 | |
# COPY . /app | |
# RUN cd /app | |
# # RUN export PATH=$PATH:$HOME/.local/bin | |
# CMD ["docker-compose up"] | |
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 ssh-keygen -A | |
RUN service ssh start | |
EXPOSE 22 | |
CMD ["/usr/sbin/sshd","-D"] |