1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/phpvirtualbox/Dockerfile

26 lines
628 B
Docker
Raw Normal View History

2016-06-14 08:32:44 +00:00
#
# Dockerfile for phpvirtualbox
#
FROM alpine
2019-10-21 08:21:10 +00: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 08:32:44 +00:00
RUN set -xe \
&& apk add --no-cache bash nginx php5-fpm php5-cli php5-json php5-soap \
2019-10-21 08:21:10 +00:00
&& apk add --no-cache --virtual build-dependencies curl tar \
2016-06-14 08:32:44 +00:00
&& touch /etc/php5/fpm.d/empty.conf \
2019-10-21 08:21:10 +00:00
&& curl -sSL ${PHPVBOX_URL} | tar xz --strip 1 \
2016-06-14 08:32:44 +00:00
&& apk del build-dependencies \
&& chown nobody:nobody -R /var/www
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
2019-10-21 08:21:10 +00:00
CMD php-fpm && nginx