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

docker: update to use php8 #67

Merged
merged 1 commit into from
Jul 3, 2022
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.15

RUN apk add --no-cache gettext curl nginx php7 php7-fpm php7-opcache php7-pdo php7-pdo_sqlite php7-openssl && \
RUN apk add --no-cache gettext curl nginx php8 php8-fpm php8-opcache php8-pdo php8-pdo_sqlite php8-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/php7/php-fpm.conf
COPY docker/php-fpm.conf /etc/php8/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 @@ -27,7 +27,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-fpm7
php-fpm8
nginx -c /etc/nginx/nginx.conf

# Ready to serve?
Expand All @@ -43,4 +43,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/php7/error.log
tail -f /var/log/nginx/error.log /var/log/php8/error.log