-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.DockerFile
More file actions
36 lines (26 loc) · 878 Bytes
/
deploy.DockerFile
File metadata and controls
36 lines (26 loc) · 878 Bytes
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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
# Apache ENVs
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_PID_FILE /var/run/apache2/apache2.pid
ENV APACHE_SERVER_NAME localhost
LABEL description="Apache2.4 on Ubuntu 18.04 with Atlassian Crowd/JIRA Authentication plugin."
EXPOSE 80
RUN \
apt-get update && \
apt-get --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
install \
apache2 \
libapache2-mod-svn \
libcurl3-gnutls \
curl
COPY apache2.conf /etc/apache2/apache2.conf
COPY build/libapache2-mod-auth-crowd.deb /
RUN dpkg -i /libapache2-mod-auth-crowd.deb
COPY certs/* /usr/local/share/ca-certificates/
RUN update-ca-certificates
# Launch Apache
CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]