forked from osixia/docker-phpLDAPadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 1.13 KB
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
FROM osixia/baseimage:0.8.1
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
MAINTAINER Mathias Teugels <mathias@codercpf.be>
# Default configuration: can be overridden at the docker command line
ENV LDAP_HOST 127.0.0.1
ENV LDAP_BASE_DN dc=example,dc=com
ENV LDAP_LOGIN_DN cn=admin,dc=example,dc=com
ENV LDAP_SERVER_NAME docker.io phpLDAPadmin
# Disable SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# Enable php and nginx
RUN /sbin/enable-service php5-fpm nginx
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# Resynchronize the package index files from their sources
RUN apt-get -y update
# Install phpLDAPadmin
RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends phpldapadmin
# Expose http and https default ports
EXPOSE 80 443
# Create LDAP CA certificat directory
RUN mkdir /etc/ldap/ssl
# phpLDAPadmin config
RUN mkdir -p /etc/my_init.d
ADD service/phpldapadmin/phpldapadmin.sh /etc/my_init.d/phpldapadmin.sh
VOLUME ['/var/log/']
# Clear out the local repository of retrieved package files
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*