Created
June 17, 2017 18:56
-
-
Save JaniKibichi/4ad728ce972513462a0396cd4dcbfb8d to your computer and use it in GitHub Desktop.
ussd-hhvm-dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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