dockerfile 통합

This commit is contained in:
2021-02-21 07:26:19 +09:00
parent 3f80e3f4a9
commit a2b3a14384
3 changed files with 14 additions and 19 deletions
+2 -15
View File
@@ -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
+11 -4
View File
@@ -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
+1
View File
@@ -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