Updated apache dockerfile
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3]) (push) Successful in 50s Details
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4]) (push) Successful in 47s Details
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2]) (push) Successful in 43s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:false with_server:apache]) (push) Successful in 1m26s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:false with_server:false]) (push) Successful in 1m14s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:mysql with_server:apache]) (push) Successful in 1m29s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:postgresql with_server:apache]) (push) Successful in 1m12s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 1m30s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 1m7s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 1m10s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 1m10s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:false with_server:apache]) (push) Successful in 1m16s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:false with_server:false]) (push) Successful in 1m16s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:mysql with_server:apache]) (push) Successful in 1m34s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:postgresql with_server:apache]) (push) Successful in 1m19s Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-27 15:58:56 +07:00
parent cddffeaf25
commit 517f7f7dac
2 changed files with 11 additions and 2 deletions

View File

@ -13,14 +13,23 @@ ARG WITH_DATABASE=false
ENV WITH_APACHE=${WITH_APACHE} ENV WITH_APACHE=${WITH_APACHE}
ENV WITH_DATABASE=${WITH_DATABASE} ENV WITH_DATABASE=${WITH_DATABASE}
ENV APP_ROOT=${SERVER_ROOT}/htdocs
ADD scripts/apache-entrypoint.sh /usr/local/bin/entrypoint ADD scripts/apache-entrypoint.sh /usr/local/bin/entrypoint
ADD htdocs ${APP_ROOT}
# Create directory, and install required php app # Create directory, and install required php app
RUN /bin/sh /tmp/setup.sh; \ RUN /bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh; \ /bin/rm -f /tmp/*.sh; \
rm -vrf /var/cache/apk/*; \ rm -vrf /var/cache/apk/*; \
chmod +rx /usr/local/bin/entrypoint ; chmod +rx /usr/local/bin/entrypoint ; \
sed -i "s|#version#|${PHP_VERSION}|" /app/htdocs/index.html ; \
sed -i "s|#os#|alpine|" /app/htdocs/index.html ; \
mkdir -p ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
ln -s /usr/lib/apache2 ${SERVER_ROOT}/modules ; \
chmod -R 755 ${SERVER_ROOT}/logs ${SERVER_ROOT/run} ; \
chown -R apache:apache ${SERVER_ROOT}/htdocs ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
rm -vrf /var/cache/apk/*
FROM scratch FROM scratch

View File

@ -12,7 +12,7 @@
</head> </head>
<body> <body>
<h1>Welcome to httpd!</h1> <h1>Welcome to httpd!</h1>
<h2>The sindigilive/php:#version#-apache-#flavor#-#os# variant.</h2> <h2>The sindigilive/php:#version#-apache--#os# variant.</h2>
<p>If you see this page, the nginx web server is successfully installed and <p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p> working. Further configuration is required.</p>