Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
- Dockerfile php alpine swoole 8.3
- add zip+intl
- fix nginx logging
  • Loading branch information
hiddehs committed May 7, 2024
1 parent 9db5c1f commit 559f5e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_TAG=php8.2-alpine
ARG BASE_TAG=php8.3-alpine

# https://hub.docker.com/r/phpswoole/swoole
FROM phpswoole/swoole:$BASE_TAG
Expand All @@ -19,11 +19,12 @@ RUN set -ex \
jpeg-dev \
libpng-dev \
libjpeg-turbo \
libzip-dev \
freetype-dev \
imagemagick-dev \
imagemagick && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install gd ctype pdo pdo_pgsql pcntl exif intl && \
docker-php-ext-install gd ctype pdo pdo_pgsql pcntl exif zip intl && \
rm /var/cache/apk/* && rm -rf /tmp/pear


Expand Down
2 changes: 1 addition & 1 deletion config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ http {
default_type application/octet-stream;

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

0 comments on commit 559f5e4

Please sign in to comment.