blob: e0560b0745518a1f02e10638cc439e72612a2fc3 [file] [log] [blame]
FROM debian:testing
ENV COMPOSER_ALLOW_SUPERUSER=1
# Install mysql
RUN apt-get -y update
RUN apt-get -y install mariadb-server
# Install php
RUN apt-get -y install php php-mysql php-xml php-zip
# Install composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/local/bin/composer
VOLUME /src
ENTRYPOINT ["/bin/bash", "/src/preview.sh"]