-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP 8.2 fixes; docker updates; config install redirect fix; new insta…
…ller fix
- Loading branch information
Showing
9 changed files
with
112 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#escape=` | ||
# To run on Windows, where \ is the path separator. | ||
|
||
FROM php:8.0-apache | ||
# MAINTAINER deprecated in favor of LABEL. | ||
LABEL craigk5n <[email protected]> | ||
LABEL vendor "k5n.us" | ||
# Use the official PHP image with Apache | ||
FROM php:8-apache | ||
LABEL maintainer="[email protected]" | ||
LABEL vendor="k5n.us" | ||
|
||
# Install mysqli extension | ||
RUN docker-php-ext-install mysqli | ||
|
||
# Copy all files except those in .dockerignore | ||
|
@@ -15,3 +13,9 @@ COPY . /var/www/html/ | |
# to allow the web-based installer to update it. | ||
RUN touch /var/www/html/includes/settings.php | ||
RUN chmod 777 /var/www/html/includes/settings.php | ||
|
||
# Set working directory | ||
WORKDIR /var/www/html | ||
|
||
# Start Apache server in the foreground | ||
CMD ["apache2-foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
FROM php:8.0-apache | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
# Use the official PHP image with Apache | ||
FROM php:8-apache | ||
LABEL maintainer="[email protected]" | ||
LABEL vendor="k5n.us" | ||
|
||
# Install mysqli extension | ||
RUN docker-php-ext-install mysqli | ||
|
||
#COPY docker/cron-hourly /tmp/cron.hourly | ||
#RUN crontab /tmp/cron.hourly | ||
# Install GD extension and its dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd | ||
|
||
# Run the cron every hour | ||
#RUN echo '0 * * * * php /var/www/html/tools/send_reminders.php' > /etc/crontabs/root | ||
#TODO: setup cron | ||
# Set working directory | ||
WORKDIR /var/www/html | ||
|
||
#RUN chown -R www-data:www-data /var/www | ||
# Start Apache server in the foreground | ||
CMD ["apache2-foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.