-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
41 lines (33 loc) · 1.1 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
FROM php:5.6-apache
RUN a2enmod rewrite
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update && apt-get -qq -y --no-install-recommends install \
curl \
unzip \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libjpeg-dev \
libmemcached-dev \
zlib1g-dev \
imagemagick
# install the PHP extensions we need
RUN docker-php-ext-install -j$(nproc) iconv mcrypt \
pdo pdo_mysql mysqli gd
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install exif && \
docker-php-ext-enable exif
RUN curl -J -L -s -k \
'https://github.com/omeka/Omeka/releases/download/v2.5/omeka-2.5.zip' \
-o /var/www/omeka.zip \
&& unzip -q /var/www/omeka.zip -d /var/www/ \
&& rm /var/www/omeka.zip \
&& rm -rf /var/www/html \
&& mv /var/www/omeka-2.5 /var/www/html \
&& chown -R www-data:www-data /var/www/html
COPY ./db.ini /var/www/html/db.ini
COPY ./.htaccess /var/www/html/.htaccess
COPY ./imagemagick-policy.xml /etc/ImageMagick/policy.xml
VOLUME /var/www/html
CMD ["apache2-foreground"]