调整开发环境镜像构建

This commit is contained in:
2025-08-18 14:05:38 +08:00
parent 34344edd29
commit e40d963bf5

View File

@@ -16,7 +16,9 @@ RUN apt update && \
apt install -y openssh-server
# 配置SSH服务
RUN echo 'root:fcb0102' | chpasswd && \
RUN mkdir /var/run/sshd && \
# 设置root密码可根据需要修改
echo 'root:fcb0102' | chpasswd && \
# 允许root登录SSH
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config