new
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2025-12-09 17:28:31 +09:00
parent f5eb8d4788
commit 735120f1cb
378 changed files with 24267 additions and 9248 deletions

View File

@@ -7,9 +7,20 @@ RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime \
# mod_rewrite 활성화
RUN a2enmod rewrite
# intl, pdo_mysql 설치 (이미 있으면 그대로 두셔도 됨)
RUN apt-get update && apt-get install -y libicu-dev \
&& docker-php-ext-install intl pdo pdo_mysql
# 필수 라이브러리 + PHP 확장 설치 (intl, pdo_mysql, mysqli, gd, zip)
RUN apt-get update && apt-get install -y \
libicu-dev \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libzip-dev \
zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install intl pdo pdo_mysql mysqli gd zip \
&& rm -rf /var/lib/apt/lists/*
# composer 바이너리 복사 (멀티스테이지)
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# DocumentRoot 를 CI4 public 으로 변경
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
@@ -26,3 +37,8 @@ RUN printf "<Directory /var/www/html/public>\n\
&& a2enconf ci4
WORKDIR /var/www/html
# writable 폴더 만들고 권한 부여
RUN mkdir -p /var/www/html/writable/upload/notice \
&& chown -R www-data:www-data /var/www/html/writable \
&& chmod -R 775 /var/www/html/writable