Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dockerfile for firefox + flash + pulseaudio
FROM debian:sid
# Install
RUN echo "deb sid main contrib" > /etc/apt/sources.list
RUN apt-get -q update
RUN apt-get -q install -y adduser ca-certificates iceweasel openssh-server pulseaudio
RUN apt-get -q install -y flashplugin-nonfree
RUN mkdir /var/run/sshd
ADD /root/.ssh/authorized_keys
# Add user (same name, uid, gid !!)
RUN adduser --disabled-password --gecos hybris hybris
ADD /home/hybris/.ssh/authorized_keys
# Prepare env
RUN echo "DISPLAY=:0.0" >> /etc/environment
RUN echo "PULSE_SERVER=tcp:" >> /etc/environment
CMD /usr/sbin/sshd -D
# Not maintained, go to
#! /bin/bash
# Launch container if stopped
if ! docker top firefox > /dev/null 2>&1
docker run --rm --name=firefox -h firefox \
-v /home/hybris/.mozilla:/home/hybris/.mozilla \
-v /home/hybris/Downloads:/home/hybris/Downloads \
-v /tmp:/tmp \
hybris:firefox &
sleep 3
eval `cat ~/.ssh/environment-trantor`
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" \
hybris@`docker inspect firefox | grep IPAddress | sed 's/.*"\(.*\)",/\1/'` \
iceweasel $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.