Created
March 30, 2017 14:03
-
-
Save mhubig/0852525386c969c954908593ec0b02c6 to your computer and use it in GitHub Desktop.
Dockerfile for Partkeepr (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7-apache | |
MAINTAINER Markus Hubig <[email protected]> | |
ENV VERSION 1.2.0 | |
# defaults, overwrite on startup to customize | |
ENV PARTKEEPR_DATABASE_HOST database | |
ENV PARTKEEPR_DATABASE_NAME partkeepr | |
ENV PARTKEEPR_DATABASE_PORT 3306 | |
ENV PARTKEEPR_DATABASE_USER partkeepr | |
ENV PARTKEEPR_DATABASE_PASS partkeepr | |
RUN set -ex \ | |
&& apt-get update && apt-get install -y \ | |
bzip2 \ | |
libcurl4-openssl-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libicu-dev \ | |
libxml2-dev \ | |
libpng12-dev \ | |
libldap2-dev \ | |
--no-install-recommends && rm -r /var/lib/apt/lists/* \ | |
\ | |
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) curl ldap bcmath gd dom intl opcache pdo pdo_mysql \ | |
\ | |
&& pecl install apcu \ | |
&& docker-php-ext-enable apcu \ | |
\ | |
&& cd /var/www/html \ | |
&& curl -sL https://github.com/partkeepr/PartKeepr/releases/download/${VERSION}/partkeepr-${VERSION}.tbz2 |tar -xj --strip 1 \ | |
&& chown -R www-data:www-data /var/www/html | |
\ | |
&& a2enmod rewrite | |
COPY php.ini /usr/local/etc/php/php.ini | |
COPY apache.conf /etc/apache2/sites-available/000-default.conf | |
VOLUME /var/www/html/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Part of issue partkeepr/PartKeepr#838 ...