Skip to content

Instantly share code, notes, and snippets.

Created July 23, 2014 16:10
What would you like to do?
Skype on docker
# vi: syn=sh :
from ubuntu:12.04
run echo "deb precise main universe multiverse" > /etc/apt/sources.list
run echo "deb precise partner" >> /etc/apt/sources.list
run apt-get -qqyy update
run apt-get install -qqyy x11vnc xvfb skype pulseaudio pavucontrol openssh-server
run mkdir /var/run/sshd
run adduser --disabled-password --gecos "User" --uid 5001 user
run mkdir /home/user/.ssh
add /home/user/.ssh/authorized_keys
run chown -R user:user /home/user/.ssh
env pulse_port tcp:localhost:64713
run mkdir /docker
run echo "export PULSE_SERVER=\"$pulse_port\"" >> /docker/run_skype
run echo "skype" >> /docker/run_skype
run chmod +x /docker/run_skype
expose 22
cmd ["/usr/sbin/sshd", "-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment