-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (36 loc) · 1.05 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
FROM php:7.2-apache
WORKDIR /var/www/html
# Omeka S Version
ENV OMEKA_S_VERSION v1.1.1
ENV DEBIAN_FRONTEND noninteractive
# install packages
RUN apt-get -qq update
RUN apt-get -qq -y --no-install-recommends install \
libxml2-dev \
git \
imagemagick \
gnupg \
zlib1g-dev
# install node.js and npm
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get -qq -y --no-install-recommends install \
nodejs
# install php modules
RUN docker-php-ext-install -j$(nproc) pdo pdo_mysql xml zip
# prepare omeka-s
RUN mkdir -p /tmp/omeka-s \
&& cd /tmp/omeka-s \
&& git clone https://github.com/omeka/omeka-s.git . \
&& git checkout $OMEKA_S_VERSION \
&& npm install \
&& npm install --global gulp-cli \
&& gulp init
# enable mod_rewrite (AllowOverride is already set to All on php:7.1-apache)
RUN a2enmod rewrite
# add entrypoint
COPY omeka-setup.sh /usr/local/bin
RUN chmod +x /usr/local/bin/omeka-setup.sh
# additional php settings
COPY php.ini /usr/local/etc/php
ENTRYPOINT ["omeka-setup.sh"]
CMD ["apache2-foreground"]