This commit is contained in:
rvs1729 2025-06-03 18:56:12 -07:00 committed by GitHub
commit a61db2ff44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM php:5-apache
FROM docker.io/library/php:5-apache
RUN pear channel-discover pear.nrk.io
RUN pear install nrk/Predis
@ -21,9 +21,10 @@ RUN pear install nrk/Predis
# /proc/self/fd/{1,2} are Unix sockets and apache will not be able to open()
# them. Use "cat" to write directly to the already opened fds without opening
# them again.
RUN sed -i 's#ErrorLog /proc/self/fd/2#ErrorLog "|$/bin/cat 1>\&2"#' /etc/apache2/apache2.conf
RUN sed -i 's#CustomLog /proc/self/fd/1 combined#CustomLog "|/bin/cat" combined#' /etc/apache2/apache2.conf
RUN sed -i \
-e 's#ErrorLog /proc/self/fd/2#ErrorLog "|/bin/cat 1>&2"#' \
-e 's#CustomLog /proc/self/fd/1 combined#CustomLog "|/bin/cat" combined#' \
/etc/apache2/apache2.conf
ADD guestbook.php /var/www/html/guestbook.php
ADD controllers.js /var/www/html/controllers.js
ADD index.html /var/www/html/index.html
# Copy application files
COPY guestbook.php controllers.js index.html /var/www/html/