Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Forked from yadutaf/Dockerfile
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save mjhea0/c5734690fa47eb42c382 to your computer and use it in GitHub Desktop.

Select an option

Save mjhea0/c5734690fa47eb42c382 to your computer and use it in GitHub Desktop.
FROM ubuntu:14.04
MAINTAINER Jean-Tiare Le Bigot "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
# Grab all dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install curl libx11-dev libxtst-dev libxcomposite-dev \
libxdamage-dev libxkbfile-dev python-all-dev \
python-gobject-dev python-gtk2-dev cython \
xvfb xauth x11-xkb-utils libx264-dev libvpx-dev \
libswscale-dev libavcodec-dev subversion websockify curl
# Grab sources, need latest version for HTML5
WORKDIR /usr/src
RUN svn co https://www.xpra.org/svn/Xpra/
# Build from sources
RUN cd Xpra/trunk/src
&& python ./setup.py --without-csc_swscale install \
&& cd rencode \
&& python ./setup.py install \
&& curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo python
# Get our "demo" executable
RUN apt-get -y install firefox
# Declare ports. A real application would probably use the only one not listed: SSH
EXPOSE 8080 # expose HTML5 port
EXPOSE 10000 # expose raw TCP port
# Run! Application will be served both as WebSocket and Raw TCP. (+ disable all unsupported bits)
CMD ["xpra", "start", ":10", "--start-child=firefox", "--daemon=off", "--bind-tcp=0.0.0.0:10000", "--html=0.0.0.0:8080", \
"--no-mdns", "--no-notifications", "--no-pulseaudio"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment