PHP - DB 연결에 connection pool 적용

This commit is contained in:
jisangs committed 2026-10-07 13:59:59 +09:00
1 parent 144caf351f
commit fb59286dd4
3 files changed
+24 -6

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ RUN { \
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN { \
echo 'mysqli.max_persistent = 1'; \
echo 'mysqli.max_links = -1'; \
} > /usr/local/etc/php/conf.d/mysqli-pool.ini
RUN printf '#!/bin/sh\ncp /var/www/html/mouse_typing/index.html /var/www/html/index.html\nexec "$@"\n' \
> /usr/local/bin/entrypoint.sh \
&& chmod +x /usr/local/bin/entrypoint.sh