devcontainer-tweak/dev-ubuntu-20.04-ssh/Dockerfile

12 lines
366 B
Docker
Raw Permalink Normal View History

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"]
# $ docker build -t base-ssh-devcontainer:ubuntu-20.04-20241014 .