| 6 |
RUN sed -i 's/#Include conf\/extra\/httpd-vhosts.conf/Include conf\/extra\/httpd-vhosts.conf/' /usr/local/apache2/conf/httpd.conf |
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 |
# Copy web application files |
|
RUN mkdir -p /var/www/html/gen_ex |
|
| 9 |
COPY ./bbs /var/www/html/bbs |
COPY ./bbs /var/www/html/bbs |
| 10 |
COPY ./gen_ex/*.css /var/www/html/gen_ex/ |
COPY ./gen_ex /var/www/html/gen_ex |
| 11 |
COPY ./js /var/www/html/js |
COPY ./js /var/www/html/js |
| 12 |
COPY ./lib /var/www/html/lib |
COPY ./lib /var/www/html/lib |
| 13 |
COPY ./manage /var/www/html/manage |
COPY ./manage /var/www/html/manage |
| 14 |
RUN mkdir -p /var/www/html/bbs/cache /var/www/html/bbs/upload /var/www/html/conf /var/www/html/stat |
RUN mkdir -p /var/www/html/bbs/cache \ |
| 15 |
|
/var/www/html/bbs/upload \ |
| 16 |
|
/var/www/html/bbs/images/face/upload_photo \ |
| 17 |
|
/var/www/html/conf /var/www/html/stat |
| 18 |
|
|
| 19 |
# Set ownership to www-data user and group |
# Set ownership to www-data user and group |
| 20 |
RUN chown -R www-data:www-data /var/www/html |
RUN chown -R www-data:www-data /var/www/html |