Skip to content

Commit

Permalink
Minor changes in order to make HHVM work ov docker
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Campos Nunes <[email protected]>
  • Loading branch information
rafaelcn committed Mar 13, 2019
1 parent 893e1a6 commit e7a8652
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM hhvm/hhvm-proxygen:latest
LABEL maintainer="Rafael Campos Nunes <[email protected]>"

#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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions public/hello.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo "Something heeeeeere";
2 changes: 2 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo "Hello Murrica";
1 change: 0 additions & 1 deletion server.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ hhvm.server.port = 80
hhvm.server.type = proxygen
hhvm.server.allow_run_as_root = true
hhvm.server.default_document = index.php
hhvm.server.error_document404 = 404.php
1 change: 0 additions & 1 deletion src/404.php

This file was deleted.

1 change: 0 additions & 1 deletion src/index.php

This file was deleted.

0 comments on commit e7a8652

Please sign in to comment.