Skip to content

Instantly share code, notes, and snippets.

@rvdmei
Created April 14, 2015 05:56
Show Gist options
  • Save rvdmei/17a9eba888f88c3ed518 to your computer and use it in GitHub Desktop.
Save rvdmei/17a9eba888f88c3ed518 to your computer and use it in GitHub Desktop.
Crossbar.io Dockerfile
FROM centos:centos6
RUN yum -y install python-devel "@Development tools" libffi-devel openssl-devel wget
RUN yum -y install tar
RUN rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
RUN yum -y install php54w
RUN wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-2.5-linux_x86_64-portable.tar.bz2
RUN tar xvjf pypy-2.5-linux_x86_64-portable.tar.bz2
RUN mv pypy-2.5-linux_x86_64-portable pypy
RUN wget https://bootstrap.pypa.io/get-pip.py
ENV PATH=$PATH:/pypy/bin/
RUN pypy get-pip.py
RUN pip install crossbar[tls,msgpack,manhole,system]
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN crossbar init --template hello:python --appdir /home/helios
WORKDIR /home/helios
CMD crossbar start
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment