10 lines
366 B
Docker
10 lines
366 B
Docker
FROM hotwa/bbt:latest
|
|
|
|
# 确保 SSH 服务可以启动
|
|
RUN echo 'root:root' | chpasswd && \
|
|
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
|
|
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
|
|
|
# 启动 ssh 服务
|
|
CMD ["/bin/bash", "-c", "service ssh start; tail -f /dev/null"]
|