Skip to content

Commit

Permalink
For now the config files need to be in the apache2 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
danakim committed Oct 25, 2023
1 parent a218df8 commit e55a4e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apache2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ RUN a2enmod authz_groupfile \
rewrite

# Copy the default apache config
COPY ./conf/apache2/apache2.conf /etc/apache2/apache2.conf
COPY ./conf/apache2/security.conf /etc/apache2/security.conf
COPY ./conf/apache2.conf /etc/apache2/apache2.conf
COPY ./conf/security.conf /etc/apache2/security.conf

# Copy the startup script
COPY ./bin/start.sh /usr/local/bin/start.sh

# Create the Apache2 run dir
RUN mkdir -p /var/run/apache2

# Set the default workdir
WORKDIR /var/www/html
Expand All @@ -32,4 +38,4 @@ WORKDIR /var/www/html
EXPOSE 80

# Start Apache
CMD ["apache2", "-D", "foreground"]
CMD ["/usr/local/bin/start.sh"]
7 changes: 7 additions & 0 deletions apache2/bin/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Read the envars for Apache2
source /etc/apache2/envvars

# Start Apache2
apache2 -D FOREGROUND
File renamed without changes.
File renamed without changes.

0 comments on commit e55a4e2

Please sign in to comment.