-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 848 Bytes
/
Dockerfile
File metadata and controls
25 lines (24 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM hhvm/hhvm-proxygen:latest
RUN rm -rf /var/www
ADD . /var/www
WORKDIR /var/www
ADD hh_autoload.json /var/www
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN php composer.phar require hhvm/hsl hhvm/hhvm-autoload
RUN php composer.phar -v require facebook/xhp-lib ^4.0
RUN php composer.phar require --dev hhvm/hhast hhvm/hacktest facebook/fbexpect
EXPOSE 80
##
## to see what whas installed
## docker build . -t test
## docker run -it --rm test sh
##
## to run
## docker build .
## --> bunch of messages, look for writing image sha256:c7b6 ... bcdc
## docker run -p 0.0.0.0:80:80 c7b62 ... bcdc
##
## Served out of /var/www/public, so, static css, images, js should live in /var/www/public and /var/public/images/
##