-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile.cross
29 lines (25 loc) · 1.26 KB
/
Dockerfile.cross
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
26
27
28
29
FROM __BASEIMAGE_ARCH__/alpine
MAINTAINER Jonathan Weisberg <[email protected]>
# Git source https://github.com/jazzdd86/phpVirtualbox.git
__CROSS_COPY qemu-__QEMU_ARCH__-static /usr/bin
RUN apk --no-cache --update add bash tzdata nginx php7-fpm php7-cli php7-common php7-json php7-soap php7-simplexml php7-session \
&& apk --no-cache --update add --virtual build-dependencies wget unzip \
&& wget --no-check-certificate https://github.com/phpvirtualbox/phpvirtualbox/archive/develop.zip -O phpvirtualbox.zip \
&& unzip phpvirtualbox.zip -d phpvirtualbox \
&& mkdir -p /var/www \
&& mv -v phpvirtualbox/*/* /var/www/ \
&& rm phpvirtualbox.zip \
&& rm phpvirtualbox/ -R \
&& apk del build-dependencies \
&& echo "<?php return array(); ?>" > /var/www/config-servers.php \
&& echo "<?php return array(); ?>" > /var/www/config-override.php \
&& chown nobody:nobody -R /var/www
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# config files
COPY config.php /var/www/config.php
COPY nginx.conf /etc/nginx/nginx.conf
COPY servers-from-env.php /servers-from-env.php
# expose only nginx HTTP port
EXPOSE 80
# write linked instances to config, then monitor all services
CMD php7 /servers-from-env.php && php-fpm7 && nginx