ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:bcebbf0fddcba5b864d5d267b68dd23bcfb01275e6ec7bcab69bf8b56af14804 in / |
CMD ["/bin/bash"] |
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 iputils-ping openssh-server telnet && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && mkdir -p /run/sshd && chmod 755 /run/sshd && if ! id -u "$SSH_USERNAME" > /dev/null 2>&1; then useradd -ms /bin/bash "$SSH_USERNAME"; fi && chown -R "$SSH_USERNAME":"$SSH_USERNAME" /home/"$SSH_USERNAME" && chmod 755 /home/"$SSH_USERNAME" && mkdir -p /home/"$SSH_USERNAME"/.ssh && chown "$SSH_USERNAME":"$SSH_USERNAME" /home/"$SSH_USERNAME"/.ssh && echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && echo "PermitRootLogin no" >> /etc/ssh/sshd_config |
COPY configure-ssh-user.sh /usr/local/bin/ |
RUN chmod +x /usr/local/bin/configure-ssh-user.sh |