-
Notifications
You must be signed in to change notification settings - Fork 64
/
Dockerfile
42 lines (37 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM php:7.1-apache
LABEL maintainer="Markus Hubig <[email protected]>"
LABEL version="1.4.0-20"
ENV PARTKEEPR_VERSION 1.4.0
RUN set -ex \
&& apt-get update && apt-get install -y \
bsdtar \
libcurl4-openssl-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libicu-dev \
libxml2-dev \
libpng-dev \
libldap2-dev \
cron \
--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_bc-beta \
&& docker-php-ext-enable apcu \
\
&& cd /var/www/html \
&& curl -sL https://downloads.partkeepr.org/partkeepr-${PARTKEEPR_VERSION}.tbz2 \
|bsdtar --strip-components=1 -xvf- \
&& chown -R www-data:www-data /var/www/html \
\
&& a2enmod rewrite
COPY crontab /etc/cron.d/partkeepr
COPY php.ini /usr/local/etc/php/php.ini
COPY apache.conf /etc/apache2/sites-available/000-default.conf
COPY docker-php-entrypoint mkparameters parameters.template /usr/local/bin/
VOLUME ["/var/www/html/data", "/var/www/html/web"]
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["apache2-foreground"]