Dockerfile 724 B

1234567891011121314151617181920212223
  1. FROM php:5.6-apache
  2. # Install and enable PHP extensions
  3. # https://wiki.invoiceplane.com/en/1.0/getting-started/requirements
  4. RUN \
  5. apt-get update && apt-get install -y \
  6. libfreetype6-dev \
  7. libjpeg62-turbo-dev \
  8. libmcrypt-dev \
  9. libpng12-dev \
  10. librecode-dev \
  11. libxml2-dev \
  12. && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  13. && docker-php-ext-install -j$(nproc) gd mcrypt mysqli recode xmlrpc
  14. # Copy InvoicePlane into public directory
  15. COPY . /var/www/html
  16. # Enable .htaccess, set permissions, and enable Apache mod_rewrite
  17. RUN mv /var/www/html/htaccess /var/www/html/.htaccess \
  18. && chown -R www-data:www-data /var/www/html \
  19. && a2enmod rewrite