Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 17, 2017 18:56
Show Gist options
  • Save JaniKibichi/4ad728ce972513462a0396cd4dcbfb8d to your computer and use it in GitHub Desktop.
Save JaniKibichi/4ad728ce972513462a0396cd4dcbfb8d to your computer and use it in GitHub Desktop.
ussd-hhvm-dockerfile
#choose base image
FROM ubuntu:16.04
#update base image
RUN apt-get update && apt-get -y upgrade
#install hhvm
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
RUN deb http://dl.hhvm.com/debian jessie main | tee /etc/apt/sources.list.d/hhvm.list
RUN apt-get update && apt-get -y install hhvm
#create working directory
RUN mkdir /ussd
WORKDIR /ussd
#copy ussd app
COPY ussd.php /ussd
#run hhvm
CMD ["/usr/bin/hhvm","-m server -p 8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment