2016-06-14 10:32:44 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for phpvirtualbox
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
2019-10-21 10:21:10 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
|
|
|
ENV PHPVBOX_VERSION=5.2-1
|
|
|
|
ENV PHPVBOX_URL=https://github.com/phpvirtualbox/phpvirtualbox/archive/${PHPVBOX_VERSION}.tar.gz
|
|
|
|
|
|
|
|
WORKDIR /var/www
|
2016-06-14 10:32:44 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache bash nginx php5-fpm php5-cli php5-json php5-soap \
|
2019-10-21 10:21:10 +02:00
|
|
|
&& apk add --no-cache --virtual build-dependencies curl tar \
|
2016-06-14 10:32:44 +02:00
|
|
|
&& touch /etc/php5/fpm.d/empty.conf \
|
2019-10-21 10:21:10 +02:00
|
|
|
&& curl -sSL ${PHPVBOX_URL} | tar xz --strip 1 \
|
2016-06-14 10:32:44 +02:00
|
|
|
&& apk del build-dependencies \
|
|
|
|
&& chown nobody:nobody -R /var/www
|
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2019-10-21 10:21:10 +02:00
|
|
|
CMD php-fpm && nginx
|