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

Annotation of /fenglin/Dockerfile/dockerfile.apache

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Jan 4 12:44:40 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Add docker config files

1 sysadm 1.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 ./conf /var/www/html/conf
12     COPY ./gen_ex/*.css /var/www/html/gen_ex/
13     COPY ./js /var/www/html/js
14     COPY ./lib /var/www/html/lib
15     COPY ./manage /var/www/html/manage
16     RUN mkdir -p /var/www/html/bbs/cache /var/www/html/bbs/upload /var/www/html/stat
17    
18     # Set ownership to www-data user and group
19     RUN chown -R www-data:www-data /var/www/html

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