Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
14 lines
377 B
Docker
14 lines
377 B
Docker
FROM erlang:27.3.2-slim
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
RUN set -ex \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends openssh-client \
|
|
&& mkdir -p /etc/ssh \
|
|
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
|
|
|
|
COPY start_ssh.escript /usr/local/bin/start_ssh.escript
|
|
|
|
CMD ["escript", "/usr/local/bin/start_ssh.escript"]
|