bug fix (Thu May 4 15:10:28 CST 2023)

This commit is contained in:
Dict Xiong 2023-05-04 15:10:29 +08:00
parent af711687cd
commit 758cedfc21
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
FROM docker.io/alpine
RUN apk add --no-cache openssh git sudo tmux vim bash zsh curl wget coreutils util-linux tzdata openrc \
RUN apk add --no-cache openssh git sudo tmux vim bash zsh curl wget coreutils util-linux tzdata shadow \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
COPY sshd_config /etc/ssh/sshd_config

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -e
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
crond
/etc/init.d/sshd start || echo "sshd already started"
/usr/sbin/sshd
bash