Skip to content

Instantly share code, notes, and snippets.

@mqsoh
mqsoh / Dockerfile
Created June 28, 2019 20:12
ssh docker
FROM debian:stretch
# Remove the host keys because it's not safe to package those. The entrypoint
# will establish a convention for providing them in the environment and
# generating new ones automatically.
RUN apt update && \
apt install --assume-yes ssh && \
rm /etc/ssh/ssh_host_* && \
rm -rf /var/lib/apt/lists/*