Permalink
Browse files

Added Dockerfile

  • Loading branch information...
1 parent 6c1cb13 commit 6724ac8fd8cf6b7b55d694f6fbfadffc29574be4 @alexgleason alexgleason committed Sep 4, 2016
Showing with 27 additions and 0 deletions.
  1. +5 −0 .dockerignore
  2. +22 −0 Dockerfile
View
@@ -0,0 +1,5 @@
+.gitignore
+CONTRIBUTING.md
+Dockerfile
+license.txt
+README.md
View
@@ -0,0 +1,22 @@
+FROM php:5.6-apache
+
+# Install and enable PHP extensions
+# https://wiki.invoiceplane.com/en/1.0/getting-started/requirements
+RUN \
+ apt-get update && apt-get install -y \
+ libfreetype6-dev \
+ libjpeg62-turbo-dev \
+ libmcrypt-dev \
+ libpng12-dev \
+ librecode-dev \
+ libxml2-dev \
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
+ && docker-php-ext-install -j$(nproc) gd mcrypt mysqli recode xmlrpc
+
+# Copy InvoicePlane into public directory
+COPY . /var/www/html
+
+# Enable .htaccess, set permissions, and enable Apache mod_rewrite
+RUN mv /var/www/html/htaccess /var/www/html/.htaccess \
+ && chown -R www-data:www-data /var/www/html \
+ && a2enmod rewrite

0 comments on commit 6724ac8

Please sign in to comment.