ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:63d5ab3ef0aab308c0e71cb67292c5467f60deafa9b0418cbb220affcd078444 in / |
CMD ["/bin/bash"] |
ENV DEBIAN_FRONTEND=noninteractive |
/bin/sh -c apt update && apt install --no-install-recommends -y nano openssh-server openssh-client rsync sudo && rm -rf /var/lib/apt/lists/* && useradd -m -d /home/user -s /bin/bash -U -G sudo -u 1000 user && echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && mkdir /home/user/.ssh/ |
COPY multi:2383779f94c4f6a5e82904f76f5ac0b1eba2fc46a1691b420f739e46afb8170a in /home/user/.ssh/ |
COPY multi:5ccdbe25878df7b914198c04c33752656f9d7fa4ee8206c84cbe731f46e03765 in /etc/ssh/ |
/bin/sh -c chown -R user:user /home/user/.ssh && chmod 644 /home/user/.ssh/authorized_keys && chmod 600 /home/user/.ssh/config && chmod 600 /home/user/.ssh/id_ed25519 && chmod 600 /home/user/.ssh/id_ed25519.pub && chmod 600 /home/user/.ssh/known_hosts |
/bin/sh -c chown root:root /etc/ssh/* && chmod 644 /etc/ssh/sshd_config && chmod 600 /etc/ssh/ssh_host_ed25519_key && chmod 644 /etc/ssh/ssh_host_ed25519_key.pub |
/bin/sh -c service ssh start |
EXPOSE 22 |
CMD ["/usr/sbin/sshd" "-D"] |