bug fix (Thu May 4 15:10:28 CST 2023)
This commit is contained in:
parent
af711687cd
commit
758cedfc21
|
@ -1,6 +1,6 @@
|
||||||
FROM docker.io/alpine
|
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
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
COPY sshd_config /etc/ssh/sshd_config
|
COPY sshd_config /etc/ssh/sshd_config
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
|
||||||
crond
|
crond
|
||||||
/etc/init.d/sshd start || echo "sshd already started"
|
/usr/sbin/sshd
|
||||||
bash
|
bash
|
||||||
|
|
Loading…
Reference in New Issue
Block a user