Skip to content

Commit

Permalink
docker: bump to alpine 3.17.1 and update scripts for compatibility wi…
Browse files Browse the repository at this point in the history
…th php81
  • Loading branch information
mattburchett committed Jan 21, 2023
1 parent 22888b8 commit fe7b5e0
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.17.1

RUN apk add --no-cache gettext curl nginx php8 php8-fpm php8-opcache php8-pdo php8-pdo_sqlite php8-openssl && \
RUN apk add --no-cache gettext curl nginx php81 php81-fpm php81-opcache php81-pdo php81-pdo_sqlite php81-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/php8/php-fpm.conf
COPY docker/php-fpm.conf /etc/php81/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
100644 → 100755
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-fpm8
php-fpm81
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/php8/error.log
tail -f /var/log/nginx/error.log /var/log/php81/error.log

0 comments on commit fe7b5e0

Please sign in to comment.