From b1b6a83aeffe1252f7380377b8c7d146de940240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 12 Feb 2026 19:42:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:Docker=20MNG=EC=97=90=20GD=20=ED=99=95?= =?UTF-8?q?=EC=9E=A5=20=EC=B6=94=EA=B0=80=20(PDF=20=EC=84=9C=EB=AA=85=20?= =?UTF-8?q?=ED=95=A9=EC=84=B1=EC=9A=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- sam/docker/mng/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 sam/docker/mng/Dockerfile diff --git a/sam/docker/mng/Dockerfile b/sam/docker/mng/Dockerfile new file mode 100755 index 0000000..4967154 --- /dev/null +++ b/sam/docker/mng/Dockerfile @@ -0,0 +1,33 @@ +FROM php:8.4-fpm + +# 필수 패키지/확장 설치 +RUN apt-get update && apt-get install -y \ + git \ + unzip \ + libzip-dev \ + libicu-dev \ + libxml2-dev \ + libpng-dev \ + libfreetype-dev \ + libjpeg62-turbo-dev \ + nginx \ + supervisor \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install zip mysqli pdo pdo_mysql intl soap gd + +# Composer 설치 +COPY --from=composer:2 /usr/bin/composer /usr/bin/composer + +# 타임존 설정 +RUN echo "date.timezone=Asia/Seoul" > /usr/local/etc/php/conf.d/timezone.ini + +# 포트 개방 +EXPOSE 80 + +# supervisor로 nginx+php-fpm 동시 기동 +CMD ["/usr/bin/supervisord"] + +# entrypoint.sh 복사 및 권한 +COPY ./mng/entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file