forked from klokantech/omeka-s-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 1.06 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
FROM php:7.1-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 \
libpng-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 curl -J -L -s -k \
'https://github.com/omeka/omeka-s/releases/download/v2.0.2/omeka-s-2.0.2.zip' \
-o /var/www/omeka-s.zip \
&& unzip -q /var/www/omeka-s.zip -d /var/www/ \
&& rm /var/www/omeka-s.zip \
&& rm -rf /var/www/html \
&& mv /var/www/omeka-s /var/www/html \
&& chown -R www-data:www-data /var/www/html
COPY ./database.ini /var/www/html/config/database.ini
COPY ./imagemagick-policy.xml /etc/ImageMagick/policy.xml
COPY ./.htaccess /var/www/html/.htaccess
VOLUME /var/www/html
CMD ["apache2-foreground"]