FROM mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04 COPY entrypoint.sh /entrypoint.sh RUN apt-get update && apt-get install -y openssh-server && apt-get clean && chmod +x /entrypoint.sh # 当有命令传入时候执行命令,否则执行 tail -f /dev/null ENTRYPOINT ["/entrypoint.sh"] CMD [] # $ docker build -t base-ssh-devcontainer:ubuntu-20.04-20241014 .