From a2b3a1438417058e99963c8966432c1cf611679d Mon Sep 17 00:00:00 2001 From: letrhee Date: Sun, 21 Feb 2021 07:26:19 +0900 Subject: [PATCH] =?UTF-8?q?dockerfile=20=ED=86=B5=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/app/Dockerfile | 17 ++--------------- hidche/app/sam_conf.ini | 15 +++++++++++---- hidche/board/Dockerfile | 1 + 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/hidche/app/Dockerfile b/hidche/app/Dockerfile index dcac568..0a6b79f 100644 --- a/hidche/app/Dockerfile +++ b/hidche/app/Dockerfile @@ -25,25 +25,12 @@ RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ zip; RUN pecl install memcached mcrypt; #from nextcloud setting -RUN { \ - echo 'opcache.enable=1'; \ - echo 'opcache.interned_strings_buffer=8'; \ - echo 'opcache.max_accelerated_files=10000'; \ - echo 'opcache.memory_consumption=128'; \ - echo 'opcache.save_comments=1'; \ - echo 'opcache.revalidate_freq=1'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ - \ - echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ - \ - echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \ - mkdir -p /var/www/html/; \ +RUN mkdir -p /var/www/html/; \ mkdir -p /var/www/.ssh; - COPY entrypoint.sh /usr/local/bin/ COPY id_ecdsa known_hosts /var/www/.ssh/ - +COPY sam_conf.ini /usr/local/etc/php/conf.d/sam_conf.ini VOLUME /var/www/html ARG UID=33 diff --git a/hidche/app/sam_conf.ini b/hidche/app/sam_conf.ini index 6b268f1..f396947 100644 --- a/hidche/app/sam_conf.ini +++ b/hidche/app/sam_conf.ini @@ -1,8 +1,15 @@ -[PHP] expose_php = Off -[Pdo_mysql] pdo_mysql.cache_size = 2000 - -[MySQLi] mysqli.cache_size = 2000 +memory_limit=512M + +apc.enable_cli=1 + +opcache.enable=1 +opcache.interned_strings_buffer=8 +opcache.max_accelerated_files=10000 +opcache.validate_timestamps=on +opcache.memory_consumption=128 +opcache.save_comments=1 +opcache.revalidate_freq=1 diff --git a/hidche/board/Dockerfile b/hidche/board/Dockerfile index 532993e..9452a2b 100644 --- a/hidche/board/Dockerfile +++ b/hidche/board/Dockerfile @@ -41,6 +41,7 @@ RUN { \ mkdir -p /var/www/.ssh; COPY entrypoint.sh /usr/local/bin/ +COPY sam_conf.ini /usr/local/etc/php/conf.d/sam_conf.ini VOLUME /var/www/board