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

Diff of /fenglin/Dockerfile/dockerfile.apache

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

Revision 1.3 by sysadm, Mon Jan 5 12:13:00 2026 UTC Revision 1.4 by sysadm, Sat Jan 10 06:50:42 2026 UTC
# Line 1  Line 1 
1    FROM composer:latest AS composer_installer
2    
3    # Set working directory
4    RUN mkdir -p /usr/local/composer
5    
6    WORKDIR /usr/local/composer
7    
8    COPY ./composer.json ./composer.lock ./
9    RUN /usr/bin/composer install --prefer-dist --no-scripts --no-progress
10    
11  # Use the official Apache image  # Use the official Apache image
12  FROM httpd:2.4  FROM httpd:2.4
13    
# Line 16  RUN mkdir -p /var/www/html/bbs/cache \ Line 26  RUN mkdir -p /var/www/html/bbs/cache \
26      /var/www/html/bbs/images/face/upload_photo \      /var/www/html/bbs/images/face/upload_photo \
27      /var/www/html/conf /var/www/html/stat      /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  # Set ownership to www-data user and group  # Set ownership to www-data user and group
33  RUN chown -R www-data:www-data /var/www/html  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