Skip to content

Commit

Permalink
bump PHP to 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPaglusch authored and mattburchett committed Mar 2, 2024
1 parent c925ae9 commit 2796d54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 2796d54

Please sign in to comment.