/[LeafOK_CVS]/fenglin/Dockerfile/dockerfile.apache
ViewVC logotype

Contents of /fenglin/Dockerfile/dockerfile.apache

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Jan 5 11:10:26 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.1: +1 -2 lines
Create /var/www/html/conf if not exist
No longer copy config files from TODO/conf to /var/www/html/conf.
Manual modification regarding config file is expected.

1 # Use the official Apache image
2 FROM httpd:2.4
3
4 # Copy the custom configuration file
5 COPY ./Dockerfile/httpd-vhosts.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
6 RUN sed -i 's/#Include conf\/extra\/httpd-vhosts.conf/Include conf\/extra\/httpd-vhosts.conf/' /usr/local/apache2/conf/httpd.conf
7
8 # Copy web application files
9 RUN mkdir -p /var/www/html/gen_ex
10 COPY ./bbs /var/www/html/bbs
11 COPY ./gen_ex/*.css /var/www/html/gen_ex/
12 COPY ./js /var/www/html/js
13 COPY ./lib /var/www/html/lib
14 COPY ./manage /var/www/html/manage
15 RUN mkdir -p /var/www/html/bbs/cache /var/www/html/bbs/upload /var/www/html/conf /var/www/html/stat
16
17 # Set ownership to www-data user and group
18 RUN chown -R www-data:www-data /var/www/html

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1