/[LeafOK_CVS]/lbbs-combo/Dockerfile/dockerfile.apache.testing
ViewVC logotype

Diff of /lbbs-combo/Dockerfile/dockerfile.apache.testing

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Thu Jan 8 03:27:09 2026 UTC Revision 1.4 by sysadm, Thu Jan 22 10:00:46 2026 UTC
# Line 1  Line 1 
1  FROM leafok/lbbs-apache:latest  FROM composer:latest AS composer_installer
2    
3  RUN mkdir -p /var/www/html/conf  # Set working directory
4    RUN mkdir -p /usr/local/composer
5    
6    WORKDIR /usr/local/composer
7    
8    COPY ./leafok_bbs/composer.json ./leafok_bbs/composer.lock ./
9    RUN /usr/bin/composer install --prefer-dist --no-scripts --no-progress
10    
11    # Use the official Apache image
12    FROM httpd:2.4
13    
14    # Copy the custom configuration file
15    COPY ./leafok_bbs/Dockerfile/httpd-vhosts.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
16    RUN sed -i 's/#Include conf\/extra\/httpd-vhosts.conf/Include conf\/extra\/httpd-vhosts.conf/' /usr/local/apache2/conf/httpd.conf
17    
18    # Copy web application files
19    COPY ./leafok_bbs/bbs /var/www/html/bbs
20    COPY ./leafok_bbs/gen_ex /var/www/html/gen_ex
21    COPY ./leafok_bbs/js /var/www/html/js
22    COPY ./leafok_bbs/lib /var/www/html/lib
23    COPY ./leafok_bbs/manage /var/www/html/manage
24    RUN mkdir -p /var/www/html/bbs/cache \
25        /var/www/html/bbs/upload \
26        /var/www/html/bbs/images/face/upload_photo \
27        /var/www/html/conf /var/www/html/stat
28    
29    # Copy the composer binary from the installer stage into your final image
30    COPY --from=composer_installer /usr/local/composer/vendor /var/www/html/vendor
31    
32  COPY ./conf/db_conn.conf.php /var/www/html/conf/db_conn.conf.php  COPY ./conf/db_conn.conf.php /var/www/html/conf/db_conn.conf.php
33    COPY ./conf/site.conf.php /var/www/html/conf/site.conf.php
34  COPY ./conf/smtp.conf.php /var/www/html/conf/smtp.conf.php  COPY ./conf/smtp.conf.php /var/www/html/conf/smtp.conf.php
35  COPY ./leafok_bbs/TODO/conf/badwords.conf /var/www/html/conf/badwords.conf  COPY ./leafok_bbs/TODO/conf/badwords.conf /var/www/html/conf/badwords.conf
36  COPY ./leafok_bbs/TODO/conf/deny_reg.conf /var/www/html/conf/deny_reg.conf  COPY ./leafok_bbs/TODO/conf/deny_reg.conf /var/www/html/conf/deny_reg.conf
37    
38  RUN chown -R www-data:www-data /var/www/html/conf  COPY ./data/eula.txt /var/www/html/bbs/doc/eula.txt
39    
40    # Set ownership to www-data user and group
41    RUN chown -R www-data:www-data /var/www/html


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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