Skip to content

Instantly share code, notes, and snippets.

@dongri
Created March 24, 2014 14:34
Show Gist options
  • Save dongri/9741255 to your computer and use it in GitHub Desktop.
Save dongri/9741255 to your computer and use it in GitHub Desktop.
$ vim Dockerfile
FROM ubuntu
RUN apt-get update
RUN apt-get install -y python-software-properties
RUN apt-get install -y wget
RUN add-apt-repository ppa:mapnik/boost
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
RUN echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
RUN apt-get update
RUN apt-get install -y hhvm
$ docker build -t hack .
.....
$ docker images
$ docker run -i -t hack bash
root@c5b48b4e3988:/# vi helloworld.hh
<?hh
echo "Hello World\n";
<?hh
echo "Hello World\n";
?>
root@c5b48b4e3988:/# hhvm helloworld.hh
Hello World
root@c5b48b4e3988:/#
<?hh
echo "Hello World\n";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment