-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
98 lines (80 loc) · 3.76 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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 docker-php-ext-install exif && \
docker-php-ext-enable exif
RUN curl -J -L -s -k \
'https://github.com/omeka/Omeka/releases/download/v3.0.1/omeka-3.0.1.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-3.0.1 /var/www/html
RUN curl -J -L -s -k \
'https://github.com/CPHDH/theme-curatescape-echo/archive/refs/heads/master.zip' \
-o /var/www/master.zip \
&& unzip -q /var/www/master.zip -d /var/www/html/themes/ \
&& mv /var/www/html/themes/theme-curatescape-echo-master/curatescape-echo /var/www/html/themes/curatescape \
&& rm /var/www/master.zip
RUN curl -J -L -s -k \
'https://github.com/CPHDH/CuratescapeJSON/archive/master.zip' \
-o /var/www/CuratescapeJSON-master.zip \
&& unzip -q /var/www/CuratescapeJSON-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/CuratescapeJSON-master /var/www/html/plugins/CuratescapeJSON \
&& rm /var/www/CuratescapeJSON-master.zip
RUN curl -J -L -s -k \
'https://github.com/CPHDH/CuratescapeAdminHelper/archive/master.zip' \
-o /var/www/CuratescapeAdminHelper-master.zip \
&& unzip -q /var/www/CuratescapeAdminHelper-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/CuratescapeAdminHelper-master /var/www/html/plugins/CuratescapeAdminHelper \
&& rm /var/www/CuratescapeAdminHelper-master.zip
RUN curl -J -L -s -k \
'https://github.com/CPHDH/plugin-TourBuilder/archive/master.zip' \
-o /var/www/plugin-TourBuilder-master.zip \
&& unzip -q /var/www/plugin-TourBuilder-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/TourBuilder-master /var/www/html/plugins/TourBuilder \
&& rm /var/www/plugin-TourBuilder-master.zip
RUN curl -J -L -s -k \
'https://github.com/omeka/plugin-Geolocation/archive/refs/heads/master.zip' \
-o /var/www/plugin-Geolocation-master.zip \
&& unzip -q /var/www/plugin-Geolocation-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/plugin-Geolocation-master /var/www/html/plugins/Geolocation \
&& rm /var/www/plugin-Geolocation-master.zip
RUN curl -J -L -s -k \
'https://github.com/omeka/plugin-SimplePages/releases/download/v3.1.2/SimplePages-3.1.2.zip' \
-o /var/www/SimplePages-3.1.2.zip \
&& unzip -o -q /var/www/SimplePages-3.1.2.zip -d /var/www/html/plugins/ \
&& rm /var/www/SimplePages-3.1.2.zip
RUN curl -J -L -s -k \
'https://github.com/CPHDH/SuperRss/archive/master.zip' \
-o /var/www/SuperRss-master.zip \
&& unzip -q /var/www/SuperRss-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/SuperRss-master /var/www/html/plugins/SuperRss \
&& rm /var/www/SuperRss-master.zip
RUN curl -J -L -s -k \
'https://github.com/ebellempire/MoreUserRoles/archive/master.zip' \
-o /var/www/MoreUserRoles-master.zip \
&& unzip -q /var/www/MoreUserRoles-master.zip -d /var/www/html/plugins/ \
&& mv /var/www/html/plugins/MoreUserRoles-master /var/www/html/plugins/MoreUserRoles \
&& rm /var/www/MoreUserRoles-master.zip
RUN 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"]