From e7a8652a79848a6b742d6fd2491b1960e35efa89 Mon Sep 17 00:00:00 2001 From: Rafael Campos Nunes Date: Wed, 13 Mar 2019 20:15:38 -0300 Subject: [PATCH] Minor changes in order to make HHVM work ov docker Signed-off-by: Rafael Campos Nunes --- Dockerfile | 8 +++++--- Makefile | 6 +++--- public/hello.php | 2 ++ public/index.php | 2 ++ server.ini | 1 - src/404.php | 1 - src/index.php | 1 - 7 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 public/hello.php create mode 100644 public/index.php delete mode 100644 src/404.php delete mode 100644 src/index.php diff --git a/Dockerfile b/Dockerfile index 0c2b6b1..19404da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM hhvm/hhvm-proxygen:latest LABEL maintainer="Rafael Campos Nunes " +#RUN apt-get update && apt-get install mysql-server -y + RUN rm -rf /var/www -ADD ./src /var/www/public -ADD server.ini /etc/hhvm/ +ADD ./public/ /var/www/public/ -RUN ls /var/www/public +COPY ./server.ini /etc/hhvm/ EXPOSE 80 +EXPOSE 4000 diff --git a/Makefile b/Makefile index e49bee7..aa83bef 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # -# +# A simple makefile to run the container. # all: - docker build -t unkown . - docker run -p 0.0.0.0:80:80 unknown + docker build --no-cache -t unkown . + docker run --privileged -p 0.0.0.0:80:80 unknown diff --git a/public/hello.php b/public/hello.php new file mode 100644 index 0000000..328e623 --- /dev/null +++ b/public/hello.php @@ -0,0 +1,2 @@ +