-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
77 lines (64 loc) · 2.61 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
FROM ubuntu:18.04
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_LOG_DIR /var/log/apache2
ENV TZ=Europe/Berlin\
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y apache2 \
php7.0 \
libapache2-mod-php \
curl \
php-mysql \
mysql-client \
curl \
php-curl \
php-xml \
zip \
wget \
ffmpeg \
ghostscript \
imagemagick \
php-gd \
libreoffice \
php-zip \
vim \
php-mbstring \
git
#GMAGICK
RUN apt-get install -y php-pear php-dev graphicsmagick libgraphicsmagick1-dev php-gmagick
# && pecl install gmagick-2.0.4RC1
# better PDF (wkhtmltopdf)
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb && apt install -y ./wkhtmltox_0.12.5-1.bionic_amd64.deb
ENV CA_PROVIDENCE_VERSION=1.7.8
ENV CA_PROVIDENCE_DIR=/var/www/providence
RUN curl -SsL https://github.com/collectiveaccess/providence/archive/$CA_PROVIDENCE_VERSION.tar.gz | tar -C /var/www/ -xzf -
RUN mv /var/www/providence-$CA_PROVIDENCE_VERSION /var/www/providence
RUN cd $CA_PROVIDENCE_DIR && cp setup.php-dist setup.php
RUN sed -i "s@DocumentRoot \/var\/www\/html@DocumentRoot \/var\/www@g" /etc/apache2/sites-available/000-default.conf
RUN rm -rf /var/www/html
run mkdir /$CA_PROVIDENCE_DIR/media/collectiveaccess
run mkdir /$CA_PROVIDENCE_DIR/app/locale/fi_FI
COPY files/php.ini /etc/php/7.2/apache2/php.ini
COPY files/messages.po /$CA_PROVIDENCE_DIR/app/locale/fi_FI/
COPY files/messages.mo /$CA_PROVIDENCE_DIR/app/locale/fi_FI/
COPY files/base.css /$CA_PROVIDENCE_DIR/themes/default/css/
COPY files/fi_FI.lang /$CA_PROVIDENCE_DIR/app/lib/Parsers/TimeExpressionParser/
COPY files/osc.xml /$CA_PROVIDENCE_DIR/install/profiles/xml/
COPY files/global.conf /$CA_PROVIDENCE_DIR/app/conf/
COPY files/browse.conf /$CA_PROVIDENCE_DIR/app/conf/
COPY files/app.conf /$CA_PROVIDENCE_DIR/app/conf/
COPY files/search.conf /$CA_PROVIDENCE_DIR/app/conf/
COPY files/multipart_id_numbering.conf /$CA_PROVIDENCE_DIR/app/conf/
#COPY files/TileViewer.php /$CA_PROVIDENCE_DIR/app/lib/core/Media/MediaViewers/
COPY files/menu_logo_osc.png /$CA_PROVIDENCE_DIR/themes/default/graphics/logos/menu_logo.png
COPY files/setup.php /$CA_PROVIDENCE_DIR/setup.php
COPY files/entrypoint.sh /entrypoint.sh
RUN chown -R www-data:www-data /var/www
RUN chmod 777 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80
CMD [ "/usr/sbin/apache2", "-DFOREGROUND" ]