Skip to content

Commit 850c143

Browse files
committed
Remove apache configuration settings
1 parent 1e8e82a commit 850c143

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Dockerfile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@ FROM php:5.6-apache
22

33
RUN a2enmod rewrite
44

5-
# copy a few things from apache's init script that it requires to be setup
6-
ENV APACHE_CONFDIR /etc/apache2
7-
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
8-
# and then a few more from $APACHE_CONFDIR/envvars itself
9-
ENV APACHE_RUN_USER www-data
10-
ENV APACHE_RUN_GROUP www-data
11-
ENV APACHE_RUN_DIR /var/run/apache2
12-
ENV APACHE_PID_FILE $APACHE_RUN_DIR/apache2.pid
13-
ENV APACHE_LOCK_DIR /var/lock/apache2
14-
ENV APACHE_LOG_DIR /var/log/apache2
15-
ENV LANG C
16-
RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR
17-
18-
# make CustomLog (access log) go to stdout instead of files
19-
# and ErrorLog to stderr
20-
RUN find "$APACHE_CONFDIR" -type f -exec sed -ri ' \
21-
s!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g; \
22-
s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
23-
' '{}' ';'
24-
255
RUN rm -rf /var/www/html && mkdir /var/www/html
266
VOLUME /var/www/html
277
WORKDIR /var/www/html

0 commit comments

Comments
 (0)