File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 11FROM php:7.1-apache
22MAINTAINER Devin Matte <
[email protected] >
33
4- EXPOSE 8080
5- EXPOSE 8443
6-
7- RUN a2enmod rewrite && a2enmod headers && a2enmod expires
8-
9- RUN sed -i '/Listen/{s/\( [0-9]\+\) /8080/; :a;n; ba}' /etc/apache2/ports.conf
10-
114ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
125
6+ RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
7+ sed -i '/Listen/{s/\( [0-9]\+\) /8080/; :a;n; ba}' /etc/apache2/ports.conf && \
8+ chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
9+
1310RUN apt-get -yq update && \
14- apt-get -yq install gnupg libmagickwand-dev --no-install-recommends
11+ apt-get -yq install gnupg libmagickwand-dev --no-install-recommends && \
12+ apt-get -yq clean all
1513
16- RUN docker-php-ext-install mysqli
17- RUN pecl install imagick && docker-php-ext-enable imagick
14+ RUN docker-php-ext-install mysqli && \
15+ pecl install imagick && docker-php-ext-enable imagick
1816
1917COPY . /var/www/html
2018
@@ -24,7 +22,8 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
2422 npm install && \
2523 npm run-script build && \
2624 rm -rf node_modules && \
27- apt-get -yq remove nodejs npm && \
25+ apt-get -yq remove nodejs && \
2826 apt-get -yq clean all
2927
30- RUN chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
28+ EXPOSE 8080
29+ EXPOSE 8443
Original file line number Diff line number Diff line change 1212$ DATABASE_USER = $ get_env (getenv ("DATABASE_USER " ), '' );
1313$ DATABASE_PASS = $ get_env (getenv ("DATABASE_PASS " ), '' );
1414$ DATABASE_DB = $ get_env (getenv ("DATABASE_DB " ), '' );
15- $ DUMPCLASSES = '/mnt/share/cshclass.dat ' ;
16- $ DUMPCLASSATTR = '/mnt/share/cshattrib.dat ' ;
17- $ DUMPINSTRUCT = '/mnt/share/cshinstr.dat ' ;
18- $ DUMPMEETING = '/mnt/share/cshmtgpat.dat ' ;
19- $ DUMPNOTES = '/mnt/share/cshnotes.dat ' ;
15+ $ DUMPCLASSES = $ get_env ( getenv ( " DUMPCLASSES " ), '/mnt/share/cshclass.dat ' ) ;
16+ $ DUMPCLASSATTR = $ get_env ( getenv ( " DUMPCLASSATTR " ), '/mnt/share/cshattrib.dat ' ) ;
17+ $ DUMPINSTRUCT = $ get_env ( getenv ( " DUMPINSTRUCT " ), '/mnt/share/cshinstr.dat ' ) ;
18+ $ DUMPMEETING = $ get_env ( getenv ( " DUMPMEETING " ), '/mnt/share/cshmtgpat.dat ' ) ;
19+ $ DUMPNOTES = $ get_env ( getenv ( " DUMPNOTES " ), '/mnt/share/cshnotes.dat ' ) ;
2020
2121$ HTTPROOTADDRESS = $ get_env (getenv ("HTTPROOTADDRESS " ), 'http://schedule.csh.rit.edu/ ' );
2222$ SERVER_TYPE = $ get_env (getenv ("SERVER_TYPE " ), 'development ' );
You can’t perform that action at this time.
0 commit comments