akaunting/Dockerfile

24 lines
728 B
Docker
Raw Normal View History

2017-12-04 15:56:48 +11:00
FROM php:apache
2018-01-06 21:15:47 +11:00
RUN apt-get update && apt-get install -y zip libzip-dev libpng-dev \
&& docker-php-ext-install pdo_mysql gd zip \
&& rm -rf /var/lib/apt/lists/*
2018-05-22 15:16:19 +03:00
# Composer installation.
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer global require hirak/prestissimo --prefer-dist --no-progress --no-suggest --classmap-authoritative \
&& composer clear-cache
ENV PATH="${PATH}:/root/.composer/vendor/bin"
2017-12-04 15:56:48 +11:00
COPY . /var/www/html/
# Authorize these folders to be edited
RUN chmod -R 777 /var/www/html/storage
RUN chmod -R 777 /var/www/html/bootstrap/cache
# Allow rewrite
RUN a2enmod rewrite