Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump PHP to 8.3 #153

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.19.1

RUN apk add --no-cache gettext curl nginx php81 php81-fpm php81-opcache php81-pdo php81-pdo_sqlite php81-openssl && \
RUN apk add --no-cache gettext curl nginx php83 php83-fpm php83-opcache php83-pdo php83-pdo_sqlite php83-openssl && \
mkdir /var/www/html

COPY . /var/www/html

RUN chmod -R 775 /var/www/html && \
chown -R nginx:nginx /var/www/html

COPY docker/php-fpm.conf /etc/php81/php-fpm.conf
COPY docker/php-fpm.conf /etc/php83/php-fpm.conf
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/entrypoint.sh /entrypoint.sh

Expand Down
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rm -rf /var/www/html/docker
# Start php-fpm and nginx
chown -R nginx: /var/www/html/data/
touch /var/www/html/data/index.php
php-fpm81
php-fpm83
nginx -c /etc/nginx/nginx.conf

# Ready to serve?
Expand All @@ -44,4 +44,4 @@ for i in 1 2 3; do
done

echo "Access logging is disabled for production use. Tailing error logs..."
tail -f /var/log/nginx/error.log /var/log/php81/error.log
tail -f /var/log/nginx/error.log /var/log/php83/error.log
Loading