Skip to content

Instantly share code, notes, and snippets.

@RavenZZ
Forked from crosbymichael/Dockerfile
Created February 17, 2018 06:44
Show Gist options
  • Save RavenZZ/9de0dc7fb9e49be3505043936fc46dfc to your computer and use it in GitHub Desktop.
Save RavenZZ/9de0dc7fb9e49be3505043936fc46dfc to your computer and use it in GitHub Desktop.
Docker with supervisor
FROM ubuntu
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y openssh-server supervisor
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf
RUN mkdir -p /var/run/sshd
RUN echo "root:root" | chpasswd
EXPOSE 22
CMD /usr/bin/supervisord -n
[program:sshd]
directory=/usr/local/
command=/usr/sbin/sshd -D
autostart=true
autorestart=true
redirect_stderr=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment