Updated SSH DevContainer of MS Ubuntu 20.04

This commit is contained in:
DAI
2024-10-14 03:11:33 +00:00
commit fe49bd173e
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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 .