-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (31 loc) · 1.37 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
FROM ubuntu:16.04
MAINTAINER Martin Lambertz <[email protected]>
ENV ILIBRARIAN_VERSION=4.8_all_xenial \
ILIBRARIAN_LIBRARY_PATH=/data
VOLUME ${ILIBRARIAN_LIBRARY_PATH}
EXPOSE 80
RUN apt-get -qy update && \
DEBIAN_FRONTEND=noninteractive apt-get -qy install wget && \
wget -q https://i-librarian.net/downloads/i-librarian_${ILIBRARIAN_VERSION}.deb && \
DEBIAN_FRONTEND=noninteractive apt-get -qy install \
./i-librarian_${ILIBRARIAN_VERSION}.deb \
php-ldap && \
a2dissite 000-default && \
a2dismod -f autoindex && \
sed -i 's/^ServerTokens.*$/ServerTokens Prod/' /etc/apache2/conf-enabled/security.conf && \
sed -i 's/^ServerSignature.*$/ServerSignature Off/' /etc/apache2/conf-enabled/security.conf && \
rm -f /var/www/html/index.html && \
rm -f i-librarian_${ILIBRARIAN_VERSION}.deb && \
rm -rf /var/lib/apt/lists/* && \
ln -snf /dev/stdout /var/log/apache2/access.log && \
ln -snf /dev/stderror /var/log/apache2/error.log && \
ln -snf /dev/stdout /var/log/apache2/other_vhosts_access.log && \
ln -snf /dev/stderror /var/log/apache2/other_vhosts_error.log
ENV APACHE_LOCK_DIR=/var/lock/apache2 \
APACHE_PID_FILE=/var/run/apache2.pid \
APACHE_LOG_DIR=/var/log/apache2 \
APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data
COPY scripts/ /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]
CMD ["i-librarian"]