Skip to content

Commit 559f5e4

Browse files
committed
Updates
- Dockerfile php alpine swoole 8.3 - add zip+intl - fix nginx logging
1 parent 9db5c1f commit 559f5e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_TAG=php8.2-alpine
1+
ARG BASE_TAG=php8.3-alpine
22

33
# https://hub.docker.com/r/phpswoole/swoole
44
FROM phpswoole/swoole:$BASE_TAG
@@ -19,11 +19,12 @@ RUN set -ex \
1919
jpeg-dev \
2020
libpng-dev \
2121
libjpeg-turbo \
22+
libzip-dev \
2223
freetype-dev \
2324
imagemagick-dev \
2425
imagemagick && \
2526
docker-php-ext-configure gd --with-freetype --with-jpeg && \
26-
docker-php-ext-install gd ctype pdo pdo_pgsql pcntl exif intl && \
27+
docker-php-ext-install gd ctype pdo pdo_pgsql pcntl exif zip intl && \
2728
rm /var/cache/apk/* && rm -rf /tmp/pear
2829

2930

config/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http {
1212
default_type application/octet-stream;
1313

1414
# Define custom log format to include reponse times
15-
log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" '
15+
log_format main_timed '[$request_id] [$time_local] "$request" '
1616
'$status $body_bytes_sent "$http_referer" '
1717
'"$http_user_agent" "$http_x_forwarded_for" '
1818
'$request_time $upstream_response_time $pipe $upstream_cache_status';

0 commit comments

Comments
 (0)