-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (27 loc) · 1.36 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
FROM httpd
MAINTAINER Cass Johnston <cassjohnston@gmail.com>
RUN apt-get update && apt-get install -yqq wget bzip2 curl zlib1g-dev libcurl4-openssl-dev vim build-essential libapr1-dev libaprutil1-dev libxml2-dev zip mysql-client libpng12-dev libc-client2007e-dev libkrb5-dev gettext git libgettextpo-dev sendmail libicu52 libicu-dev psmisc && apt-get clean
# Create a user & group (apache runs as this user)
RUN groupadd --system osticket
RUN useradd --system -g osticket osticket
# Install PHP for this Apache
COPY install_php.sh /tmp/install_php.sh
RUN chmod +x /tmp/install_php.sh
RUN /tmp/install_php.sh
# PHP & Apache configuration
COPY php.ini /usr/local/lib/php.ini
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
COPY httpd-ssl.conf /usr/local/apache2/conf/extra/httpd-ssl.conf
COPY httpd-vhosts.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Install osticket
COPY install_osticket.sh /tmp/install_osticket.sh
RUN chmod +x /tmp/install_osticket.sh
RUN /tmp/install_osticket.sh
##VOLUME /usr/local/apache2/htdocs/osticket
RUN chown -R osticket:osticket /usr/local/apache2/htdocs
COPY setup_osticket.sh /tmp/setup_osticket.sh
RUN chmod +x /tmp/setup_osticket.sh
CMD ["/bin/bash", "-mc", "/tmp/setup_osticket.sh"]
# Define default env vars for httpd - you can override these when you create the container
ENV SERVERNAME localhost
ENV ADMINEMAIL root@localhost