nginx 구성에 맞게 변경

- 기본 board로 rhymix 추가
This commit is contained in:
2021-02-21 04:48:41 +09:00
parent 2830e17458
commit 66d18167d4
19 changed files with 316 additions and 2623 deletions
+26 -17
View File
@@ -1,4 +1,4 @@
FROM php:7.3-fpm-buster
FROM php:7.4-fpm-buster
#debian
ENV LC_ALL=C.UTF-8
@@ -10,8 +10,6 @@ RUN apt -y update ;\
libicu-dev libjpeg-dev libpng-dev libwebp-dev libfreetype6-dev \
libzip-dev libxml2-dev libsqlite3-dev gosu;
COPY php.ini /usr/local/etc/php/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd; \
@@ -39,21 +37,32 @@ RUN { \
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/data; \
chown -R www-data:root /var/www; \
chmod -R g=u /var/www; \
mkdir -p /var/www/.ssh; \
chown www-data:www-data /var/www/.ssh; \
chmod 700 /var/www/.ssh
mkdir -p /var/www/html/; \
mkdir -p /var/www/.ssh;
COPY entrypoint.sh /usr/local/bin/
COPY id_ecdsa known_hosts /var/www/.ssh/
VOLUME /var/www/html
COPY entrypoint_hidche_app.sh /usr/local/bin/
COPY id_ecdsa known_hosts /var/www/.ssh/
RUN \
chown www-data:www-data /var/www/.ssh/*; \
chmod 600 /var/www/.ssh/*; \
chmod +x /usr/local/bin/entrypoint_hidche_app.sh
ENTRYPOINT ["entrypoint_hidche_app.sh"]
ARG UID=33
ARG GID=33
RUN if [ "$UID" != 33 ]; then \
usermod -u $UID -o www-data; \
fi; \
if [ "$GID" != 33 ]; then \
groupmod -g $GID -o www-data; \
fi; \
echo $UID > /var/tmp.txt ; \
chmod +x /usr/local/bin/entrypoint.sh; \
chown -R www-data:www-data /var/www; \
chmod -R g=u /var/www; \
mkdir -p /var/www/.ssh; \
chown www-data:www-data /var/www/.ssh; \
chmod 700 /var/www/.ssh; \
chmod 600 /var/www/.ssh/*;
ENTRYPOINT ["entrypoint.sh"]
CMD ["php-fpm"]